ironsmile / euterpe

Self-hosted music streaming server 🎶 with RESTful API and Web interface. Think of it as your very own Spotify! ☁️🎧
https://listen-to-euterpe.eu
GNU General Public License v3.0
539 stars 43 forks source link

Unable to persist database #30

Closed KeironO closed 3 years ago

KeironO commented 3 years ago

Regardless of whatever I try to do, I am unable to persist the database when installed via docker.

docker-compose.yml:

version: '3.3'
services:
    euterpe:
        volumes:
            - '/home/keo7/services/euterpe/data:/root/.euterpe'
            - '/home/keo7/consti/Music/:/root/Music'
        ports:
            - '9996:9996'
        image: 'ironsmile/euterpe:latest'
ironsmile commented 3 years ago

You seem to be doing exactly what right as far as I could tell. I am testing with pretty much exactly the same docker-compose file:

version: '3.3'
services:
    euterpe:
        volumes:
            - '/home/iron4o/euterpe-data:/root/.euterpe'
            - '/home/iron4o/Music:/root/Music'
        ports:
            - '9996:9996'
        image: 'ironsmile/euterpe:latest'

How do you know that the database is not persisted? There is no euterpe.db in your /home/keo7/services/euterpe/data directory?

ironsmile commented 3 years ago

Alternatively you could use a volume in the docker-compose file:

version: '3.3'
services:
    euterpe:
        volumes:
            - 'euterpe-data:/root/.euterpe'
            - '/home/iron4o/Music:/root/Music'
        ports:
            - '9996:9996'
        image: 'ironsmile/euterpe:latest'

volumes:
    euterpe-data:
KeironO commented 3 years ago

Apologies, it was an issue with my directory mounts, fstab doing fstab things again.