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

@@ -8,7 +8,7 @@ services:
- MYSQL_LOG_CONSOLE=true
restart: unless-stopped
volumes:
- /mnt/docker-volumes/seafile/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/seafile/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
memcached:
image: memcached:1.6
@@ -24,7 +24,7 @@ services:
- "7780:80" # HTTP
- "7443:443" # HTTPS
volumes:
- /mnt/docker-volumes/seafile/data:/shared # Requested, specifies the path to Seafile data persistent store.
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/seafile/data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev # Requested, the value shuold be root's password of MySQL service.