Skip to content

Commit

Permalink
Fix commit 22c729b, :z shall be put in the service volume mount point
Browse files Browse the repository at this point in the history
  • Loading branch information
groldan committed Nov 2, 2024
1 parent 5e947a0 commit 57de781
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
16 changes: 8 additions & 8 deletions compose/catalog-datadir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ volumes:
driver_opts:
type: none
o: bind
device: $PWD/catalog-datadir:z
device: $PWD/catalog-datadir

services:
init-datadir:
Expand All @@ -28,7 +28,7 @@ services:
init-datadir:
condition: service_completed_successfully
volumes:
- datadir:/opt/app/data_directory
- datadir:/opt/app/data_directory:z

wms:
environment:
Expand All @@ -37,7 +37,7 @@ services:
init-datadir:
condition: service_completed_successfully
volumes:
- datadir:/opt/app/data_directory
- datadir:/opt/app/data_directory:z

wcs:
environment:
Expand All @@ -46,7 +46,7 @@ services:
init-datadir:
condition: service_completed_successfully
volumes:
- datadir:/opt/app/data_directory
- datadir:/opt/app/data_directory:z

wps:
environment:
Expand All @@ -55,7 +55,7 @@ services:
init-datadir:
condition: service_completed_successfully
volumes:
- datadir:/opt/app/data_directory
- datadir:/opt/app/data_directory:z

rest:
environment:
Expand All @@ -64,7 +64,7 @@ services:
init-datadir:
condition: service_completed_successfully
volumes:
- datadir:/opt/app/data_directory
- datadir:/opt/app/data_directory:z

webui:
environment:
Expand All @@ -73,7 +73,7 @@ services:
init-datadir:
condition: service_completed_successfully
volumes:
- datadir:/opt/app/data_directory
- datadir:/opt/app/data_directory:z

gwc:
environment:
Expand All @@ -82,4 +82,4 @@ services:
init-datadir:
condition: service_completed_successfully
volumes:
- datadir:/opt/app/data_directory
- datadir:/opt/app/data_directory:z
4 changes: 2 additions & 2 deletions compose/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ volumes:
driver_opts:
type: none
o: bind
device: $PWD/../config:z
device: $PWD/../config
driver: local

x-gs-dependencies: &gs-dependencies
Expand Down Expand Up @@ -70,7 +70,7 @@ services:
# restart: unless-stopped
volumes:
# override with the local copy to test config changes during development
- config:/etc/geoserver
- config:/etc/geoserver:ro
ports:
# not needed in production, exposed for local development
- 8888:8080
Expand Down
17 changes: 8 additions & 9 deletions docs/deploy/docker-compose/stable/datadir/compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
volumes:
# a volume to host the shared data directory. Mount it at /opt/app/data_directory, since
# /opt/app is owned by the user geo:geo (603:603) in the containers. Otherwise it'd be owned by root
# a volume to host the shared data directory. Mount it at /opt/app/data_directory,
# uncomment the driver_opts entry to bind mount an existing datadirectory and set the device: <path>
# accordingly to the location of the data directory in the host
shared_data_directory:
#driver_opts:
#type: none
#o: bind
#device: $PWD/datadir:z
#device: $PWD/datadir
rabbitmq_data: # volume for rabbitmq data, so it doesn't create an anonymous one on each container
geowebcache_data: # used by gwc and web-ui to locate the default gwc tile cache directory

Expand Down Expand Up @@ -89,7 +88,7 @@ services:
SPRING_PROFILES_ACTIVE: "datadir"
GEOSERVER_DATA_DIR: /opt/app/data_directory
volumes:
- shared_data_directory:/opt/app/data_directory
- shared_data_directory:/opt/app/data_directory:z
deploy:
resources:
limits:
Expand All @@ -107,7 +106,7 @@ services:
GEOSERVER_DATA_DIR: /opt/app/data_directory
GEOWEBCACHE_CACHE_DIR: /data/geowebcache
volumes:
- shared_data_directory:/opt/app/data_directory
- shared_data_directory:/opt/app/data_directory:z
- geowebcache_data:/data/geowebcache
deploy:
resources:
Expand All @@ -125,7 +124,7 @@ services:
SPRING_PROFILES_ACTIVE: "datadir"
GEOSERVER_DATA_DIR: /opt/app/data_directory
volumes:
- shared_data_directory:/opt/app/data_directory
- shared_data_directory:/opt/app/data_directory:z
deploy:
resources:
limits:
Expand All @@ -142,7 +141,7 @@ services:
SPRING_PROFILES_ACTIVE: "datadir"
GEOSERVER_DATA_DIR: /opt/app/data_directory
volumes:
- shared_data_directory:/opt/app/data_directory
- shared_data_directory:/opt/app/data_directory:z
deploy:
mode: replicated
replicas: 1
Expand All @@ -162,7 +161,7 @@ services:
GEOSERVER_DATA_DIR: /opt/app/data_directory
GEOWEBCACHE_CACHE_DIR: /data/geowebcache
volumes:
- shared_data_directory:/opt/app/data_directory
- shared_data_directory:/opt/app/data_directory:z
- geowebcache_data:/data/geowebcache
deploy:
resources:
Expand All @@ -179,7 +178,7 @@ services:
GEOSERVER_DATA_DIR: /opt/app/data_directory
GEOWEBCACHE_CACHE_DIR: /data/geowebcache
volumes:
- shared_data_directory:/opt/app/data_directory
- shared_data_directory:/opt/app/data_directory:z
- geowebcache_data:/data/geowebcache
deploy:
resources:
Expand Down

0 comments on commit 57de781

Please sign in to comment.