add env 'DOCKER_VOLUME_STORAGE' for volume path customization

This commit is contained in:
L4RM4ND
2023-02-25 14:09:52 +01:00
parent 1d2ab5133b
commit ce70d88893
70 changed files with 167 additions and 168 deletions

View File

@@ -35,7 +35,7 @@ services:
image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-4.4}
restart: unless-stopped
volumes:
- /mnt/docker-volumes/rocketchat/mongodb:/bitnami/mongodb
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/rocketchat/mongodb:/bitnami/mongodb
environment:
MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}