-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 964 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
python_project_template:
build:
context: .
dockerfile: Dockerfile
image:
ghcr.io/strast-upm/python_project_template
container_name: python_project_template
networks:
- main_network
pgadmin:
image: dpage/pgadmin4
container_name: postgresql_admin
ports:
- "8080:80"
environment:
PGADMIN_DEFAULT_EMAIL: user@email.com
PGADMIN_DEFAULT_PASSWORD: password
volumes:
- postgres_admin_volume:/var/lib/pgadmin
networks:
- main_network
restart: unless-stopped
postgres:
image: postgres:latest
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- main_network
restart: unless-stopped
volumes:
postgres_admin_volume:
postgres_data:
networks:
main_network:
driver: bridge