-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (63 loc) · 1.99 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Default Docker Compose config:
# runs GHC Web App (ghc_web) and GHC Daemon Runner (ghc_runner) Docker containers
# with SQLite backend. ghc_runner will run using the schedule
# configured in the GHC Web App.
services:
ghc_web:
image: geopython/geohealthcheck:latest
container_name: ghc_web
restart: on-failure
ports:
- 8083:80
env_file:
- ghc.env
volumes:
#- ghc_sqlitedb:/GeoHealthCheck/DB
- ./ghc_sqlitedb:/GeoHealthCheck/DB
# Optional Plugins, using Path on the host, relative to this Compose file
# To activate: 2 steps for runner and GHC webapp:
# - configure in ghc.env
# - mount these as docker volume on host
# See https://docs.docker.com/compose/compose-file/#volumes
# - ./../GeoHealthCheck/plugins:/plugins:ro
networks:
- default
ghc_runner:
image: geopython/geohealthcheck:latest
container_name: ghc_runner
restart: on-failure
env_file:
- ghc.env
entrypoint:
- /run-runner.sh
volumes:
- ghc_sqlitedb:/GeoHealthCheck/DB
# Optional Plugins, using Path on the host, relative to this Compose file
# To activate 2 steps:
# - configure in ghc.env
# - mount these as docker volume on host
# See https://docs.docker.com/compose/compose-file/#volumes
# - ./../GeoHealthCheck/plugins:/plugins:ro
nginx:
image: nginx:stable-alpine
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx:/etc/nginx/conf.d
- /etc/letsencrypt/:/etc/letsencrypt/
- /etc/ssl/certs/dhparam.pem:/etc/ssl/certs/dhparam.pem
- ./nginx/options-ssl-nginx.conf:/etc/options-ssl-nginx.conf
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
restart: on-failure
depends_on:
- ghc_web
networks:
- default
# docker-compose v2+ needs separate volumes section
volumes:
ghc_sqlitedb:
networks:
default:
driver: bridge