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:
Mathis H (Avnyr) 2024-05-15 11:02:46 +02:00
parent 6f2b4d0f91
commit 4082f96ebd
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -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