-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.13 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
version: "3.8"
services:
app:
container_name: app
build:
context: .
#ports:
# - 5555:5555
environment:
SERVICE_PORT: 5555
FLASK_USER: ${FLASK_USER}
FLASK_PW_HASH: ${FLASK_PW_HASH}
volumes:
- /var/secure-api/share/web:/share
networks:
- main
healthcheck:
test: wget --quiet --tries=3 --spider https://chr-fr.org || exit 1
interval: 125s
timeout: 120s
retries: 3
nginx:
build:
context: ./nginx
ports:
- 80:80
- 443:443
environment:
DOMAIN_NAME: $DOMAIN_NAME
volumes:
- /var/secure-api/data/certbot/conf:/etc/letsencrypt
- /var/secure-api/data/certbot/www:/var/www/certbot
- ./nginx/client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
networks:
- main
certbot-auto:
build:
context: ./certbot-auto
volumes:
- /var/secure-api/data/certbot/conf:/etc/letsencrypt
- /var/secure-api/data/certbot/www:/var/www/certbot
environment:
DOMAIN_NAME: $DOMAIN_NAME
EMAIL_ADDRESS: $EMAIL_ADDRESS
networks:
main:
driver: bridge