-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 1.21 KB
/
docker-compose.yml
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
version: '3'
services:
django-nginx-gunicorn-postgres:
image: deploy-django-sample/django-nginx-gunicorn-postgres:1.1.1
build: .
env_file:
- config/app/docker-env
volumes:
- .:/deploy/django-nginx-gunicorn-postgres/
- ./config/supervisor/supervisor.conf:/etc/supervisor/conf.d/supervisor.conf
- static_volume:/deploy/django-nginx-gunicorn-postgres/static
- media_volume:/deploy/django-nginx-gunicorn-postgres/MEDIA
networks:
- nginx_network
- database1_network
depends_on:
- database1
nginx:
image: nginx:1.13
ports:
- 81:80
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
- static_volume:/deploy/django-nginx-gunicorn-postgres/static
- media_volume:/deploy/django-nginx-gunicorn-postgres/MEDIA
depends_on:
- django-nginx-gunicorn-postgres
networks:
- nginx_network
database1:
image: postgres:10
env_file:
- config/db/database1_env
networks:
- database1_network
volumes:
- database1_volume:/var/lib/postgresql/data
networks:
nginx_network:
driver: bridge
database1_network:
driver: bridge
volumes:
database1_volume:
static_volume:
media_volume: