4 docker compose.yaml for Cloudbox
Ultimate edited this page 2020-09-24 22:28:07 +02:00

Save this file as docker-compose.yaml

version: '3'
services:
    deemixrr:
        image: theultimatecoder/deemixrr:latest
        environment:
            - Kestrel__EndPoints__Http__Url=http://0.0.0.0:5000
            # Connectionstring for the database
            - ConnectionStrings__DefaultConnection=server=mssql;uid=sa;pwd=THIS-IS-A-NOT-SECURE-PASSWORD-MSSQL;database=Deemixrr;pooling=true
            # Hangfire dashboard
            - Hangfire__DashboardPath=/autoloaderjobs
            - Hangfire__Password=THIS-IS-A-NOT-SECURE-PASSWORD-HANGFIRE
            - Hangfire__Username=Deemixrr
            - Hangfire__Workers=2
            # Configure the cron expression for your job
            - JobConfiguration__GetUpdatesRecurringJob=0 2 * * *
            - JobConfiguration__SizeCalculatorRecurringJob=0 12 * * *
            # Configure the wait time between API requests value is in ms
            - DelayConfiguration__ImportArtistsBackgroundJob_ExecuteDelay=1000
            - DelayConfiguration__CheckArtistForUpdatesBackgroundJob_GetTrackCountDelay=1000
            - DelayConfiguration__CheckArtistForUpdatesBackgroundJob_ExecuteDelay=1000
            - DelayConfiguration__CheckPlaylistForUpdatesBackgroundJob_ExecuteDelay=1000
            - DelayConfiguration__CreateArtistBackgroundJob_FromPlaylistDelay=1000
            - DelayConfiguration__CreateArtistBackgroundJob_FromUserDelay=1000
            - DelayConfiguration__CreateArtistBackgroundJob_FromCsvDelay=1000
            - DelayConfiguration__CreatePlaylistBackgroundJob_FromCsvDelay=1000
            # Use the id command in your shell to determine the ids
            - PGID=1234
            - PUID=1234
            # Needed for reverseproxy
            - VIRTUAL_HOST=deemixrr.YOURDOMAIN.COM
            - VIRTUAL_PORT=5000
            - LETSENCRYPT_HOST=deemixrr.YOURDOMAIN.COM
            - LETSENCRYPT_EMAIL=YOUREMAILADDRESS
        depends_on:
            - mssql
        volumes:
            # Mount the deemix config files
            - /opt/deemixrr/deemix-config:/config/.config/deemix
            # Mount your media folder
            - /mnt/unionfs/Media/Audio:/mnt/unionfs
    mssql:
        image: microsoft/mssql-server-linux:latest
        environment:
            - SA_PASSWORD=THIS-IS-A-NOT-SECURE-PASSWORD-MSSQL
            - ACCEPT_EULA=Y
        volumes:
            # Persist the db files
            - /opt/deemixrr/mssql-data:/var/opt/mssql