forked from domasx2/django-angular-docker-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
47 lines (44 loc) · 1.2 KB
/
docker-compose-prod.yml
File metadata and controls
47 lines (44 loc) · 1.2 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
dbdata:
image: postgres
command: "true"
db:
extends:
file: common.yml
service: db_base
volumes_from:
- dbdata
djangoprod:
extends:
file: common.yml
service: django_base
entrypoint: []
command: gunicorn -c /etc/gunicorn/gunicorn.conf.py wsgi:application
volumes:
- "./backend:/src"
- "./media:/media"
- "./frontend/dist:/static"
- "./conf/gunicorn.conf.py:/etc/gunicorn/gunicorn.conf.py:ro"
- "./logs/gunicorn:/tmp/logs/gunicorn"
- "./logs/app:/tmp/logs/app"
links:
- db
environment:
DJANGO_SETTINGS_MODULE: conf.settings_prod
NUM_WORKERS: 4
nginxprod:
image: nginx
links:
- djangoprod
volumes:
- "./frontend/dist:/static:ro"
- "./conf/ssl:/etc/nginx/ssl:ro"
- "./logs/nginx:/tmp/logs"
- "./media:/media"
# COMMENT LINE BELOW IF CONFIGURING SSL ON INCLUDED NGINX
- "./conf/nginx.conf:/etc/nginx/nginx.conf:ro"
# UNCOMMENT LINE BELOW IF CONFIGURING SSL ON INCLUDED NGINX
# - "conf/nginx_ssl.conf:/etc/nginx/nginx.conf:ro"
ports:
- "80:80"
# UNCOMMENT BELOW IF USING SSL
# - "443:443"