forked from geoserver/geoserver-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-shared_datadir.yml
61 lines (51 loc) · 1.79 KB
/
docker-compose-shared_datadir.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
version: "3.8"
#
# Configures all geoserver services to use a shared data directory as catalog backend.
# Run with `docker-compose --compatibility -f docker-compose.yml -f docker-compose-shared_datadir.yml up -d`
# NOTE: Not ready for direct usage until deciding on a strategy to easily set up the shared data directory.
# Note the default data directory locatio is /opt/app/data_directory
# To set it to a different path, change the mount point and add the following env variable: GEOSERVER_DATA_DIR: </path/to/data_directory>
volumes:
test_shared_data_directory:
driver_opts:
type: none
o: bind
device: $PWD/docker-compose_datadir
services:
#catalog:
# command: echo "catalog-service disabled."
wfs:
environment:
SPRING_PROFILES_ACTIVE: "${DEFAULT_PROFILES},datadir"
volumes:
- test_shared_data_directory:/opt/app/data_directory
wms:
environment:
SPRING_PROFILES_ACTIVE: "${DEFAULT_PROFILES},datadir"
volumes:
- test_shared_data_directory:/opt/app/data_directory
wcs:
environment:
SPRING_PROFILES_ACTIVE: "${DEFAULT_PROFILES},datadir"
volumes:
- test_shared_data_directory:/opt/app/data_directory
wps:
environment:
SPRING_PROFILES_ACTIVE: "${DEFAULT_PROFILES},datadir"
volumes:
- test_shared_data_directory:/opt/app/data_directory
rest:
environment:
SPRING_PROFILES_ACTIVE: "${DEFAULT_PROFILES},datadir"
volumes:
- test_shared_data_directory:/opt/app/data_directory
webui:
environment:
SPRING_PROFILES_ACTIVE: "${DEFAULT_PROFILES},datadir"
volumes:
- test_shared_data_directory:/opt/app/data_directory
gwc:
environment:
SPRING_PROFILES_ACTIVE: "${DEFAULT_PROFILES},datadir"
volumes:
- test_shared_data_directory:/opt/app/data_directory