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:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user