chore: update volume paths in docker-compose.yml
The docker-compose file has been updated to shift the persistence directory for MongoDB and MariaDB to a subdirectory under ".data". This change groups persistent data in a central location, making it easier for managing and backing up data.
This commit is contained in:
parent
6f2b4d0f91
commit
4082f96ebd
@ -15,7 +15,7 @@ services:
|
||||
ports:
|
||||
- '${MYSQL_PORT}:3306'
|
||||
volumes:
|
||||
- ./mariadb/:/var/lib/mysql/
|
||||
- ./.data/mariadb/:/var/lib/mysql/
|
||||
|
||||
mongodb:
|
||||
image: 'mongo:latest'
|
||||
@ -31,4 +31,4 @@ services:
|
||||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
|
||||
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
|
||||
volumes:
|
||||
- ./mongodb:/data/db
|
||||
- ./.data/mongodb:/data/db
|
||||
|
Loading…
x
Reference in New Issue
Block a user