-
Notifications
You must be signed in to change notification settings - Fork 422
/
docker-compose-build.yml
49 lines (48 loc) · 1.59 KB
/
docker-compose-build.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
volumes:
geoserver-data:
settings:
services:
geoserver-prod:
image: kartoza/geoserver:${GS_VERSION}
volumes:
- geoserver-data:/opt/geoserver/data_dir
- settings:/settings
ports:
- ${GEOSERVER_PORT}:8080
restart: on-failure
environment:
- GEOSERVER_DATA_DIR=${GEOSERVER_DATA_DIR}
- GEOWEBCACHE_CACHE_DIR=${GEOWEBCACHE_CACHE_DIR}
- GEOSERVER_ADMIN_PASSWORD=${GEOSERVER_ADMIN_PASSWORD}
- GEOSERVER_ADMIN_USER=${GEOSERVER_ADMIN_USER}
- INITIAL_MEMORY=${INITIAL_MEMORY}
- MAXIMUM_MEMORY=${MAXIMUM_MEMORY}
- RECREATE_DATADIR=${RECREATE_DATADIR}
- HTTP_PROXY_NAME
- HTTP_PROXY_PORT
- STABLE_EXTENSIONS=${STABLE_EXTENSIONS}
- COMMUNITY_EXTENSIONS=${COMMUNITY_EXTENSIONS}
healthcheck:
test: [ "CMD-SHELL", "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null -u $${GEOSERVER_ADMIN_USER}:$${GEOSERVER_ADMIN_PASSWORD} http://localhost:8080/geoserver/rest/about/version.xml" ]
interval: 1m
timeout: 10s
retries: 3
start_period: 1m
build:
context: .
# Use yaml anchor for reusability
args: &build-args-anchor
IMAGE_VERSION: ${IMAGE_VERSION}
JAVA_HOME: ${JAVA_HOME}
GS_VERSION: ${GS_VERSION}
WAR_URL: ${WAR_URL}
STABLE_PLUGIN_BASE_URL: ${STABLE_PLUGIN_BASE_URL}
ACTIVATE_GDAL_PLUGIN: ${ACTIVATE_GDAL_PLUGIN}
target: geoserver-prod
geoserver-test:
image: kartoza/geoserver:manual-build
build:
context: .
args:
<<: *build-args-anchor
target: geoserver-test