I have 6 Channels DVR Servers running in containers on my Synology NAS.
I was naming the directories for the main source it was hosting, but then started moving the sources around.
In hindsight, I should have set them up like this, so I know which port each is running on.
Server 1 on port 8189
version: '3.9'
services:
# Docker container home: https://hub.docker.com/r/fancybits/channels-dvr
# image uses host mode networking and port is specified by env variable CHANNELS_PORT
channels-dvr-8189:
image: fancybits/channels-dvr:tve # use :tve tag, not :latest
container_name: channels-dvr-8189
network_mode: "host" # must run in host, not bridge mode
devices:
- "/dev/dri:/dev/dri" # to enable hardware transcoding
environment:
- CHANNELS_PORT=8189 # MODIFY the host port number to use
- TZ=America/Los_Angeles # MODIFY your local timezone in standard linux format
volumes:
- "/volume1/docker/channels-dvr-8189:/channels-dvr" # Channels DVR executables and log directory
- "/volume1/ChDVR8189:/volume1/ChDVR8189" # MODIFY Channels DVR recording directory
# Add volumes for local content import directories
restart: unless-stopped
Server 2 on port 8289
version: '3.9'
services:
# Docker container home: https://hub.docker.com/r/fancybits/channels-dvr
# image uses host mode networking and port is specified by env variable CHANNELS_PORT
channels-dvr-8289:
image: fancybits/channels-dvr:tve # use :tve tag, not :latest
container_name: channels-dvr-8289
network_mode: "host" # must run in host, not bridge mode
devices:
- "/dev/dri:/dev/dri" # to enable hardware transcoding
environment:
- CHANNELS_PORT=8289 # MODIFY the host port number to use
- TZ=America/Los_Angeles # MODIFY your local timezone in standard linux format
volumes:
- "/volume1/docker/channels-dvr-8289:/channels-dvr" # Channels DVR executables and log directory
- "/volume1/ChDVR8289:/volume1/ChDVR8289" # MODIFY Channels DVR recording directory
# Add volumes for local content import directories
restart: unless-stopped
Server 3 on port 8389
version: '3.9'
services:
# Docker container home: https://hub.docker.com/r/fancybits/channels-dvr
# image uses host mode networking and port is specified by env variable CHANNELS_PORT
channels-dvr-8389:
image: fancybits/channels-dvr:tve # use :tve tag, not :latest
container_name: channels-dvr-8389
network_mode: "host" # must run in host, not bridge mode
devices:
- "/dev/dri:/dev/dri" # to enable hardware transcoding
environment:
- CHANNELS_PORT=8389 # MODIFY the host port number to use
- TZ=America/Los_Angeles # MODIFY your local timezone in standard linux format
volumes:
- "/volume1/docker/channels-dvr-8389:/channels-dvr" # Channels DVR executables and log directory
- "/volume1/ChDVR8389:/volume1/ChDVR8389" # MODIFY Channels DVR recording directory
# Add volumes for local content import directories
restart: unless-stopped
Server 4 on port 8489
version: '3.9'
services:
# Docker container home: https://hub.docker.com/r/fancybits/channels-dvr
# image uses host mode networking and port is specified by env variable CHANNELS_PORT
channels-dvr-8489:
image: fancybits/channels-dvr:tve # use :tve tag, not :latest
container_name: channels-dvr-8489
network_mode: "host" # must run in host, not bridge mode
devices:
- "/dev/dri:/dev/dri" # to enable hardware transcoding
environment:
- CHANNELS_PORT=8489 # MODIFY the host port number to use
- TZ=America/Los_Angeles # MODIFY your local timezone in standard linux format
volumes:
- "/volume1/docker/channels-dvr-8489:/channels-dvr" # Channels DVR executables and log directory
- "/volume1/ChDVR8489:/volume1/ChDVR8489" # MODIFY Channels DVR recording directory
# Add volumes for local content import directories
restart: unless-stopped
Server 5 on port 8589
version: '3.9'
services:
# Docker container home: https://hub.docker.com/r/fancybits/channels-dvr
# image uses host mode networking and port is specified by env variable CHANNELS_PORT
channels-dvr-8589:
image: fancybits/channels-dvr:tve # use :tve tag, not :latest
container_name: channels-dvr-8589
network_mode: "host" # must run in host, not bridge mode
devices:
- "/dev/dri:/dev/dri" # to enable hardware transcoding
environment:
- CHANNELS_PORT=8589 # MODIFY the host port number to use
- TZ=America/Los_Angeles # MODIFY your local timezone in standard linux format
volumes:
- "/volume1/docker/channels-dvr-8589:/channels-dvr" # Channels DVR executables and log directory
- "/volume1/ChDVR8589:/volume1/ChDVR8589" # MODIFY Channels DVR recording directory
# Add volumes for local content import directories
restart: unless-stopped
Server 6 on port 8689
version: '3.9'
services:
# Docker container home: https://hub.docker.com/r/fancybits/channels-dvr
# image uses host mode networking and port is specified by env variable CHANNELS_PORT
channels-dvr-8689:
image: fancybits/channels-dvr:tve # use :tve tag, not :latest
container_name: channels-dvr-8689
network_mode: "host" # must run in host, not bridge mode
devices:
- "/dev/dri:/dev/dri" # to enable hardware transcoding
environment:
- CHANNELS_PORT=8689 # MODIFY the host port number to use
- TZ=America/Los_Angeles # MODIFY your local timezone in standard linux format
volumes:
- "/volume1/docker/channels-dvr-8689:/channels-dvr" # Channels DVR executables and log directory
- "/volume1/ChDVR8689:/volume1/ChDVR8689" # MODIFY Channels DVR recording directory
# Add volumes for local content import directories
restart: unless-stopped