Hello everyone!
I've read everything I could to understand how to install UMS in a docker container, but I couldn't find a simple guide that could be used by someone not as experienced as me.
There is a reference guide (accessible from the main site) at
this page, but I think it is not very clearly written for an inexperienced user.
In this thread I found some perhaps more understandable guidance, so I ask here.
It seems to me that using a docker-compose.yml might be the simplest solution.
I compared the docker-compose.yml file proposed by
FixYourDockerfile on the first page and the one reported by
Pisweetly just above.
From the comparison, I had some doubts.
1) For managing volumes, it seems to me that Pisweetly's syntax is clearer (and correct?). In the first file, I do not understand how the path to the folders in the host system is specified.
2) For the official image there is no need to specify the ports?
3) For 'restart', which option would you choose? "always" or "unless-stopped"?
Could the docker-compose.yml file (valid for the official image) be the following? Could you point me to any errors or changes?
Code: Select all
version: '3.7'
services:
universalmediaserver:
image: universalmediaserver/ums
container_name: UMS
network_mode: host
environment:
- UMS_PROFILE=/profile
volumes:
- /path/to/your/UMS.conf:/profile
- /Path/to/your/Media:/media:ro
ports:
- 5001:5001
- 9001:9001
restart: always