Fix docker-compose source volume definition

Always use a bind mount for the source volume to ensure the source-push volume works as intended.

Additionally add some clarifying comments in several places.
This commit is contained in:
Markus Klein 2023-04-05 23:30:51 +02:00 committed by Ralf Becker
parent a6a30e80b5
commit 0c568287a5

View File

@ -1,8 +1,18 @@
version: '3' version: '3'
volumes: volumes:
# NOTE: all directories referenced by "device" entries below need to be created manually before starting the containers
# egroupware sources
sources: sources:
# you can use either an anonymous volume, or explicitly specify an existing (!) path driver_opts:
# device: $PWD/sources type: none
o: bind
device: $PWD/sources/
# sources for push server, swoolepush is a subdirectory of egroupware sources (within volume "sources")
sources-push:
driver_opts:
type: none
o: bind
device: $PWD/sources/egroupware/swoolepush
db: db:
data: data:
driver_opts: driver_opts:
@ -21,16 +31,11 @@ volumes:
# # location of deprecated EGroupware packages like Wiki, SiteMgr, KnowledgeBase # # location of deprecated EGroupware packages like Wiki, SiteMgr, KnowledgeBase
# device: /usr/share/egroupware # device: /usr/share/egroupware
# #device: $PWD/extra # #device: $PWD/extra
# sources for push server, swoolepush subdirectory of egroupware sources, in volume "sources"
sources-push:
driver_opts:
type: none
o: bind
device: $PWD/sources/egroupware/swoolepush
# volume to store config.inc.php file / token shared between egroupware and push container # volume to store config.inc.php file / token shared between egroupware and push container
push-config: push-config:
sessions: sessions:
# collabora-config directory, initially filled by collabora-init container # collabora-config directory, initially filled by collabora-init container
# additionally some more configuration files are needed in order for collabora to work, which are _not_ generated by the collabora-init container
collabora-config: collabora-config:
driver_opts: driver_opts:
type: none type: none