-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathdocker-compose.postgis.yml
87 lines (63 loc) · 1.72 KB
/
docker-compose.postgis.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
80
81
82
83
84
85
86
87
# GHC Docker setup with Postgres as backend DB.
#
# To run:
# sudo docker-compose -f docker-compose.postgis.yml up [-d]
#
version: "3"
services:
ghc_web:
image: geopython/geohealthcheck:latest
container_name: ghc_web
restart: unless-stopped
env_file:
- ghc.env
- ghc-postgis.env
links:
- postgis_ghc
depends_on:
- postgis_ghc
ports:
- 8083:80
# volumes:
# 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
ghc_runner:
image: geopython/geohealthcheck:latest
container_name: ghc_runner
restart: unless-stopped
env_file:
- ghc.env
- ghc-postgis.env
links:
- postgis_ghc
depends_on:
- postgis_ghc
entrypoint:
- /run-runner.sh
# volumes:
# 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
postgis_ghc:
image: mdillon/postgis:10-alpine
container_name: postgis_ghc
restart: unless-stopped
env_file:
- ghc-postgis.env
volumes:
- ghc_pgdb:/var/lib/postgresql/data
# If you ever need to expose PG ports on host externally
# ports:
# - 5432:5432
expose:
- 5432
# docker-compose v2+ needs separate volumes section
volumes:
ghc_pgdb: