forked from okfn-brasil/jarbas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
92 lines (82 loc) · 1.93 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3'
services:
proxy:
image: jwilder/nginx-proxy
container_name: proxy
ports:
- "443:443"
- "80:80"
networks:
- backend
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
deploy:
restart_policy:
condition: on-failure
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- proxy-certs:/etc/nginx/certs
- proxy-vhost:/etc/nginx/vhost.d
- proxy-public:/usr/share/nginx/html
proxy-certs:
image: jrcs/letsencrypt-nginx-proxy-companion
networks:
- backend
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- proxy-certs:/etc/nginx/certs:rw
- proxy-vhost:/etc/nginx/vhost.d
- proxy-public:/usr/share/nginx/html
environment:
NGINX_PROXY_CONTAINER: proxy
django:
env_file:
- .env.prod
networks:
- backend
environment:
DEBUG: "False"
ALLOWED_HOSTS: ${VIRTUAL_HOST_WEB}
depends_on:
- memcached
expose:
- "8000"
volumes:
- assets:/code/staticfiles
entrypoint: ["gunicorn", "jarbas.wsgi:application", "--reload", "--bind", "0.0.0.0:8000", "--workers", "4"]
command: []
tasks:
env_file:
- .env
environment:
- DEBUG=False
elm:
command: ["npm", "run", "assets"]
volumes:
- assets:/code/jarbas/frontend/static
postgres:
expose:
- "5432"
memcached:
image: memcached:1.5.1-alpine
nginx:
image: datasciencebr/jarbas-server
networks:
- backend
depends_on:
- django
volumes:
- assets:/code/staticfiles
environment:
LETSENCRYPT_HOST: ${VIRTUAL_HOST_WEB}
VIRTUAL_HOST: ${VIRTUAL_HOST_WEB}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL:[email protected]}
HTTPS_METHOD: ${HTTPS_METHOD:-redirect}
VIRTUAL_PROTO: http
volumes:
assets:
proxy-certs:
proxy-vhost:
proxy-public:
networks:
backend: