-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yml
47 lines (44 loc) · 1.05 KB
/
docker-compose.prod.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
version: '3.6'
services:
django:
build:
args:
- DEBUG=false
ports:
# - '80:8000'
- '8000:8000'
# expose:
# - 8000
volumes:
- ./static:/app/static
- ./backups:/app/backup
- ./logs:/app/logs
deploy:
resources: # for Gunicorn
# https://github.com/benoitc/gunicorn/issues/1440#issuecomment-411785926
limits:
cpus: "0.1"
memory: "4G"
env_file:
- .env
environment:
- DEBUG=false
- NODE_ENV=production
postgres:
env_file:
- .env
volumes:
- ./data:/var/lib/postgresql/data
# https-portal:
# image: steveltn/https-portal:1.15.0
# restart: always
# ports:
# - '80:80'
# - '443:443'
# environment:
# DOMAINS: 'live.hacktj.org.private -> http://django:8000'
# STAGE: 'local' # {'local', 'staging', 'production'} # can't use staging or production because TLD has to be public
# WEBSOCKET: 'true'
# LISTEN_IPV6: 'true'
# ERROR_LOG: stdout
# ACCESS_LOG: stderr