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:
ports:
- 8080:2368
volumes:
- /mnt/docker-volumes/ghost/content:/var/lib/ghost/content
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/content:/var/lib/ghost/content
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
@@ -37,5 +37,5 @@ services:
- MYSQL_USER=ghost_dbuser
- MYSQL_PASSWORD=SecureDatabasePassword
volumes:
- /mnt/docker-volumes/ghost/mariadb/config:/config
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/mariadb/config:/config
restart: unless-stopped

View File

@@ -8,7 +8,7 @@ services:
ports:
- 8080:2368
volumes:
- /mnt/docker-volumes/ghost/content:/var/lib/ghost/content
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/content:/var/lib/ghost/content
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
@@ -37,7 +37,7 @@ services:
container_name: ghost_db
restart: always
volumes:
- /mnt/docker-volumes/ghost/mysql:/var/lib/mysql
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/mysql:/var/lib/mysql
#ports:
# - "13928:3306"
environment: