I migrated my Channels setup from a Mac Mini (native macOS install) to a Synology DS920+ running in a Docker container tonight and I can't get remote access working. The official docker instructions say to add both network_mode: host
and ports
in the docker-compose
configuration, but docker-compose
doesn't accept that.
docker.errors.InvalidArgument: "host" network_mode is incompatible with port_bindings
[1359] Failed to execute script docker-compose
This is my current yaml:
version: "3.8"
services:
channels-dvr:
image: fancybits/channels-dvr:tve
container_name: channels-dvr
network_mode: host
# official docs say to have ports, but it is not compatible with network_mode: host
# ports:
# - "8089:8089"
restart: on-failure:10
# could also try one of these:
# restart: always
# restart: unless-stopped
environment:
- PUID=xxxx
- PGID=xxx
- TZ=America/New_York
volumes:
- /volume1/docker/channels-dvr:/channels-dvr
- /volume1/docker/channels-dvr/dvr:/dvr
devices:
- /dev/dri:/dev/dri
(PUID and PGID are set with the correct values in the real file)
This is the docker-compose
version info from the default Docker package offered by Synology:
$ docker-compose --version
docker-compose version 1.28.5, build 24fb474e
Everything seems to work fine at home, but remote access does not work. I get the "Your Channels DVR Server at home can not be reached. Remote Access is enabled, but we can not reach your server" error. The port has been forwarded from my router to my NAS. I assume the issue is with the port not being in the yaml, but I'm not sure how to get it working.