-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
66 lines (59 loc) · 1.24 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
version: "3.9"
services:
web:
environment:
VIRTUAL_HOST: "simulator.pylabrobot.org"
LETSENCRYPT_HOST: "simulator.pylabrobot.org"
USE_IP_HASH: 1 # doesn't work yet, so just use one replica
FLASK_ENV: "production"
PRODUCTION: "1"
ports: []
entrypoint:
[
"gunicorn",
"--workers",
"1",
"--threads",
"10",
"--bind",
":5001",
"wsgi:app",
"--timeout",
"90",
"--worker-class",
"gevent",
]
nginx:
ports:
- "80:80"
- "443:443"
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
monitor:
environment:
PRODUCTION: "1"
worker:
environment:
PRODUCTION: "1"
acme-companion:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
environment:
volumes_from:
- nginx
volumes:
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge
volumes:
conf:
vhost:
html:
certs:
acme: