TeamSpeak-Systems / teamspeak-linux-docker-images

docker build files for TeamSpeak servers
Other
118 stars 56 forks source link

MariaDB database not in volume #60

Open andi448 opened 4 years ago

andi448 commented 4 years ago

It seems like the MariaDB database isn't saved anymore in /var/ts3server/ in docker-compose and just temporarily created. Therefore after every docker-compose down the complete database is deleted and newly created at the next startup.

I can fix that with creating a new volume in db:

    volumes:
      - ./db:/var/lib/mysql

But I don't know if that's the way you want it to be handled.

MildlyInterested commented 2 years ago

Just came across this aswell, for somewhat experienced docker users its apparent but it will trip up a lot new users.