-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
59 lines (52 loc) · 1.11 KB
/
docker-compose.yaml
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
57
58
59
version: '3'
services:
db:
image: postgres:14
environment:
POSTGRES_DB: django
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# volumes:
# - db_data:/var/lib/postgresql/data/
# adminer:
# image: adminer
# depends_on:
# - db
# ports:
# - 8082:8080
pgadmin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_PASSWORD=postgres
- PGADMIN_DEFAULT_EMAIL=admin@admin.home
ports:
- 8081:80
depends_on:
- db
django:
build: .
# command: python manage.py runserver 0.0.0.0:8000
# command: gunicorn root.wsgi.application --bind 0.0.0.0:8000
command: sleep infinity
volumes:
- ./app:/app
ports:
- 8000:8000
depends_on:
- db
env_file:
- ./.env.dev
nginx:
image: nginx
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./app/staticfiles:/app/staticfiles:cached
- ./app/media:/app/media:cached
ports:
- 8080:80
depends_on:
- django
# volumes:
# db_data:
# staticfiles:
# mediafiles: