mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-21 21:17:25 +00:00
Use volume for mariadb persistence (#1555)
I initially used the bind mount because it's arguably easier to back up and move around than a volume, but turns out with https://github.com/DarkflameUniverse/NexusDashboard/issues/92 it's nothing we can recommend for Docker Desktop on WSL, which unfortunately is the primary setup newcomers will try this with. So changing the default to be a volume should address that (presumably by hosting the volume within the WSL Docker VM, as opposed to the host NTFS filesystem)
This commit is contained in:
parent
3801a97722
commit
35c463656d
@ -7,7 +7,7 @@ services:
|
|||||||
- darkflame
|
- darkflame
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ${DB_DATA_DIR:-./db/data}:/var/lib/mysql
|
- ${DB_DATA_DIR:-db-data}:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
- MARIADB_RANDOM_ROOT_PASSWORD=1
|
- MARIADB_RANDOM_ROOT_PASSWORD=1
|
||||||
- MARIADB_USER=${MARIADB_USER:-darkflame}
|
- MARIADB_USER=${MARIADB_USER:-darkflame}
|
||||||
@ -79,3 +79,6 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
darkflame:
|
darkflame:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db-data:
|
||||||
|
Loading…
Reference in New Issue
Block a user