goofball222 / murmur

Murmur server (Mumble) Docker container - https://mumble.info
Apache License 2.0
36 stars 13 forks source link

Allow users to set CERTDIR as an environment variable #2

Open m0wer opened 5 years ago

m0wer commented 5 years ago

Reporting bugs/issues

I want to use some Let's Encrypt certs for this service. I mount them in readonly mode and I only mount the ones needed for the murmur server domain. When mounted on /opt/murmur/cert, the chown fails because it's a readonly filesystem. The certificates shouldn't be modified, not even the permissions, because murmur just needs to be able to read them.

A possible solution would be allowing the user to set the CERTDIR environment variable to somwhere outside of /opt/murmur and mount the certificates there. Then, you could run the image like this:

/usr/bin/docker run --rm --name "murmur" \
-e 'PUID=1000' -e 'PGID=1000' \
-e "CERTDIR=/etc/letsencrypt/live/[domain]" \
-v "/data/murmur/conf":/opt/murmur/config \
-v "/data/murmur/data":/opt/murmur/data \
-v "/data/murmur/log":/opt/murmur/log \
-v '/etc/localtime:/etc/localtime:ro' \
-v /etc/letsencrypt/live/[domain]:/etc/letsencrypt/live/[domain]/:ro \
-v /etc/letsencrypt/archive/[domain]:/etc/letsencrypt/archive/[domain]/:ro \
-p "64738:64738/tcp" \
-p "64738:64738/udp" \
"goofball222/murmur:latest"

Note mounting live and archive is needed for the symlinks to work, a simpler approach would be to just mount the whole /etc/letsencrypt directory.

m0wer commented 5 years ago

ping

goofball222 commented 5 years ago

I'll take a look at what needs to be added/changed to support this when I can find a few spare minutes.

m0wer commented 5 years ago

ping, with the pull request I've opened works

m0wer commented 5 years ago

ping :(

Jens-Ehrlich commented 4 years ago

I have the same issue and would really appreciate the fix from @m0wer .

m0wer commented 4 years ago

@Jens-Ehrlich you can check my fork (m0wer/murmur) meanwhile, I rebase from this one periodically.

BadCo-NZ commented 4 years ago

I'll take a look at what needs to be added/changed to support this when I can find a few spare minutes.

Hi @goofball222, is there any update on this? Or should I use the container by @m0wer instead?