mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2026-11-15 06:22:22 +01:00
add env 'DOCKER_VOLUME_STORAGE' for volume path customization
This commit is contained in:
1 parent
1d2ab5133b
commit
ce70d88893
70 files changed
+167
-168
No files matched your search
@@ -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