-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.12 KB
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
47
48
49
50
51
52
53
54
55
56
version: "3"
services:
web:
build: .
container_name: "django-app-server"
command: dockerize -wait tcp://db:5432 -timeout 40s python manage.py runserver 0.0.0.0:8000
volumes:
- .:/home/python/app/
ports:
- 8000:8000
networks:
- postgres
env_file:
- ./.env
depends_on:
- db
db:
build: .docker/postgres
container_name: "postgres-django-server"
volumes:
- ./.docker/dbdata:/var/lib/postgresql/data
- ./.docker/postgres:/docker-entrypoint-initdb.d
#ports:
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- postgres
env_file:
- ./.env
pgadmin:
container_name: "pgadmin-django-server"
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
volumes:
- pgadmin:/root/.pgadmin
ports:
- "5050:80"
networks:
- postgres
env_file:
- ./.env
depends_on:
- db
volumes:
pgadmin:
networks:
postgres:
driver: bridge