mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-23 08:54:27 +01:00
add env 'DOCKER_VOLUME_STORAGE' for volume path customization
This commit is contained in:
@@ -12,8 +12,8 @@ services:
|
||||
ports:
|
||||
- 3000:3000 # WEB UI
|
||||
volumes:
|
||||
- /mnt/docker-volumes/wikijs/config:/config
|
||||
- /mnt/docker-volumes/wikijs/data:/data
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/config:/config
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/data:/data
|
||||
links:
|
||||
- db
|
||||
|
||||
@@ -26,4 +26,4 @@ services:
|
||||
image: postgres:13.4-bullseye
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /mnt/docker-volumes/wikijs/database:/var/lib/postgresql/data
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/database:/var/lib/postgresql/data
|
||||
|
||||
Reference in New Issue
Block a user