-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (62 loc) · 1.87 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
services:
database:
image: kartoza/postgis:16-3.4
volumes:
- psgdata:/var/lib/postgresql
environment:
- POSTGRES_DB=${DATABASE_NAME}
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASS=${DATABASE_PASS}
- ALLOW_IP_RANGE=0.0.0.0/0
- FORCE_SSL=TRUE
restart: unless-stopped
healthcheck:
test: "PGPASSWORD=${DATABASE_PASS} pg_isready -h 127.0.0.1 -U ${DATABASE_USER} -d ${DATABASE_NAME}"
geoserver:
image: kartoza/geoserver:2.25.0
restart: unless-stopped
environment:
- JAVA_OPTS='-Dorg.geotools.coverage.io.netcdf.enhance.ScaleMissing=true'
- GEOSERVER_ADMIN_USER=${GEOSERVER_ADMIN_USER}
- GEOSERVER_ADMIN_PASSWORD=${GEOSERVER_ADMIN_PASSWORD}
- GEOSERVER_DATA_DIR=${GEOSERVER_DATA_DIR}
- GEOWEBCACHE_CACHE_DIR=${GEOWEBCACHE_CACHE_DIR}
- INITIAL_MEMORY=${INITIAL_MEMORY}
- MAXIMUM_MEMORY=${MAXIMUM_MEMORY}
- STABLE_EXTENSIONS=netcdf-plugin,wmts-multi-dimensional-plugin,wps-download-plugin
- COMMUNITY_EXTENSIONS=ncwms-plugin
- EXISTING_DATA_DIR=true
- GEOSERVER_CSRF_WHITELIST=${GEOSERVER_HOST}
- ROOT_WEBAPP_REDIRECT=true
- TOMCAT_EXTRAS=false
- HTTP_PROXY_NAME=${GEOSERVER_HOST}
- HTTP_SCHEME=https
volumes:
- gsvdata:${GEOSERVER_DATA_DIR}:rw
depends_on:
- database
importer:
build:
context: .
dockerfile: containers/importer/Dockerfile
args:
- TARGET=${TARGET}
image: links/importer:${TARGET}
env_file: .env
command: importer
volumes:
- gsvdata:/opt/geoserver/data_dir:rw
depends_on:
- database
restart: unless-stopped
webserver:
image: links/importer:${TARGET}
env_file: .env
command: webserver
volumes:
- gsvdata:/opt/geoserver/data_dir
depends_on:
- importer
- database
- geoserver
restart: unless-stopped