romancin / tinymediamanager-docker

A repository for creating a docker container including TinyMediaManager with GUI interface.
203 stars 69 forks source link

Can't bind the WebUI to port 80 with Docker at unRAID in macvlan #54

Open bruno-briner opened 3 years ago

bruno-briner commented 3 years ago

I am using TMM Docker in my unRAID server.

I recently set-up TMM Docker to use macvlan with a specific ip. My goal was to be able to access it when inside my LAN with a simple internal DNS resolution, e.g: tmm.mydomain.com, instead of having to remember ports.

I tried to change the settings to use port 80, no matter what I do the WebUI is always at port 5800.

Here is the docker run command generated by the unRAID script. /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='tinymediamanager' --net='br0' --ip='10.123.234.160' -e TZ="Europe/Paris" -e HOST_OS="Unraid" -e 'USER_ID'='99' -e 'GROUP_ID'='100' -e 'UMASK'='000' -e 'TCP_PORT_5900'='5900' -e 'APP_NAME'='tinymediamanager' -e 'TCP_PORT_5900'='5900' -e 'DISPLAY_WIDTH'='1600' -e 'DISPLAY_HEIGHT'='800' -v '/mnt':'/media':'rw' -v '/mnt/user/appdata/tinymediamanager':'/config':'rw' -p '80:5800' -p '5900:5900' 'romancin/tinymediamanager'

The part -p '80:5800' -p '5900:5900' are passed to the script as extra arguments whereas the parts -e 'TCP_PORT_5900'='5900' -e 'TCP_PORT_5800'='5800' are passed by variables.

I even tried to run the Docker as a second instance manually and removing the 'TCP_PORT_5900'='5900' and 'TCP_PORT_5800'='5800' arguments and the same problem shows up, i.e: even passing only -e '80:5800' and -e '5900:5900' the WebUI is bond to port 5800.

Docker run command my 2nd instance: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='tinymediamanager2' --net='br0' --ip='10.123.234.160' -e TZ="Europe/Paris" -e HOST_OS="Unraid" -e 'USER_ID'='99' -e 'GROUP_ID'='100' -e 'UMASK'='000' -e 'APP_NAME'='tinymediamanager2' -e 'DISPLAY_WIDTH'='1600' -e 'DISPLAY_HEIGHT'='800' -v '/mnt':'/media':'rw' -v '/mnt/user/appdata/tinymediamanager2':'/config':'rw' -p '80:5800' -p '5900:5900' 'romancin/tinymediamanager'

Any idea of what might be happening?