-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.51 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
version: '3.8'
services:
postgis:
image: postgis/postgis:12-3.0-alpine
environment:
- POSTGRES_DB=gis
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1904geohack!
volumes:
- postgresql:/var/lib/postgresql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
geoserver:
image: 1904labs/geoserver:2.17.1
environment:
- GEOSERVER_ADMIN_USER=admin
- GEOSERVER_ADMIN_PASSWORD=1904geohack!
volumes:
- geoserver:/opt/tomcat/webapps/ROOT/data
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "--fail", "http://geoserver:8080/web/"]
interval: 30s
timeout: 10s
retries: 3
webapp:
image: local/geohack-team-project:latest
# uncomment to use development server in container
# command: ["flask", "run", "--debugger", "--reload", "--host=0.0.0.0", "--port=8000"]
environment:
- GEOSERVER_URL=http://geoserver:8080
- GEOSERVER_WORKSPACE=geohack
- GEOSERVER_ADMIN_USER=admin
- GEOSERVER_ADMIN_PASSWORD=1904geohack!
- POSTGRES_URI=postgres://postgres:1904geohack!@postgis:5432/gis
build:
context: .
ports:
- "8000:8000"
volumes:
postgresql:
geoserver: