-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
49 lines (44 loc) · 1.11 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
version: "3"
volumes:
geoserver-data:
geo-db-data:
services:
postgres:
image: kartoza/postgis:${PG_TAG}
volumes:
- geo-db-data:/var/lib/postgresql
- ./postgis-init.sh:/postgis-init.sh
ports:
- "5432:5432"
environment:
- ALLOW_IP_RANGE=0.0.0.0/0
- POSTGRES_DB=${PG_DB}
- POSTGRES_USER=${PG_USER}
- POSTGRES_PASS=${PG_PASS}
restart: on-failure
geoserver:
image: kartoza/geoserver:${GS_TAG}
volumes:
- geoserver-data:${GS_DATA_DIR}
- ./training-data/geoserver:/koulutus
- ./geoserver-init.sh:/geoserver-init.sh
environment:
- SAMPLE_DATA=true
- STABLE_EXTENSIONS=${GS_EXTENSIONS}
- GEOSERVER_ADMIN_PASSWORD=${GS_DEFAULT_PASSWORD}
- GEOSERVER_DATA_DIR=${GS_DATA_DIR}
- HTTP_PROXY_NAME=${PUBLIC_IP}
- INITIAL_MEMORY=${GS_INITIAL_MEMORY}
- MAXIMUM_MEMORY=${GS_MAXIMUM_MEMORY}
ports:
- "8080:8080"
restart: on-failure
nginx:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./docs:/www/html
- ./training-data:/www/data
ports:
- "80:80"
- "443:443"