forked from WRI-Cities/payanam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
54 lines (50 loc) · 1.38 KB
/
docker-compose.yaml
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
version: "3.7"
services:
###########################################################################
####### PAYANAM #######
###########################################################################
payanam:
build:
context: .
dockerfile: Dockerfile
ports:
- "5050:5050"
volumes:
- ./routes:/app/routes
- ./locked-routes:/app/locked-routes
- ./reports:/app/reports
- ./logs:/app/logs
- ./gtfs:/app/gtfs
- ./config:/app/config
- ./uploads:/app/uploads
networks:
- intranet
nginx:
image: nginx:1.19.0-alpine
ports:
- 80:80
- 443:443
volumes:
- ./nginx:/etc/nginx/conf.d
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
restart: unless-stopped
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
depends_on:
- payanam
networks:
- intranet
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf:/etc/letsencrypt/
- ./certbot/www:/var/www/certbot
- ./certbot/log:/var/log
restart: unless-stopped
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
depends_on:
- payanam
networks:
- intranet
networks:
intranet: