-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (51 loc) · 1.22 KB
/
docker-compose.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
version: "3.7"
services:
client:
build:
context: ./client
dockerfile: Dockerfile
env_file: ./client/.env
depends_on:
- web
web:
build:
context: ./jabme
dockerfile: Dockerfile.prod
command: gunicorn app.wsgi:application --bind 0.0.0.0:8000 -c gunicorn.conf.py --enable-stdio-inheritance --log-level=info
volumes:
- static_volume:/home/app/web/staticfiles
expose:
- 8000
env_file:
- ./.env.prod
environment:
ALLOWED_IPS: http://mailer
depends_on:
- mailer
restart: always
mailer:
build:
context: ./mailer
dockerfile: Dockerfile
nginx:
build:
context: ./nginx
volumes:
- static_volume:/home/app/web/staticfiles
- ./nginx:/etc/nginx/conf.d
# - /etc/letsencrypt/live/covaccinate.tech:/etc/nginx/certs
ports:
- 80:80
- 443:443
depends_on:
- web
- client
# certbot:
# image: certbot/certbot
# restart: unless-stopped
# volumes:
# - ./data/certbot/conf:/etc/letsencrypt
# - ./data/certbot/www:/var/www/certbot
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
static_volume: