-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.prod.yml
76 lines (70 loc) · 1.73 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
version: '3.2'
services:
nginx:
image: jwilder/nginx-proxy
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- nginx-conf:/etc/nginx/conf.d
- nginx-vhost:/etc/nginx/vhost.d
- letsencrypt-challenges:/usr/share/nginx/html
- letsencrypt-certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- nginx
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
nginx-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-letsencrypt
restart: unless-stopped
volumes:
- nginx-conf:/etc/nginx/conf.d
- nginx-vhost:/etc/nginx/vhost.d
- letsencrypt-challenges:/usr/share/nginx/html
- letsencrypt-certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- nginx
db:
container_name: limbus-db
image: postgres:10
env_file: .env
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- db
web:
build:
context: ./services/web
dockerfile: Dockerfile
expose:
- "5000"
volumes:
- nginx-conf:/etc/nginx/conf.d
- /home/limbus/dbdump:/limbus/dumps
env_file: .env
depends_on:
- db
networks:
- db
- nginx
command: venv/bin/gunicorn --bind 0.0.0.0:5000 run:app
environment:
VIRTUAL_HOST: bims.abersystemsbiology.co.uk
VIRTUAL_PORT: 5000
LETSENCRYPT_HOST: bims.abersystemsbiology.co.uk
LETSENCRYPT_EMAIL: [email protected]
volumes:
nginx-conf:
nginx-vhost:
letsencrypt-certs:
letsencrypt-templates:
letsencrypt-challenges:
postgres_data:
networks:
db:
nginx: