Docker with external volumes

Hi,

I'm trying to build a docker compose file that will work with external volumes. Is this possible? I've been able to successfully run it with the stock compose file. I would like to store everything on a different server though. The servers are connected with a 10 gig fiber backbone.

When I start the container I get this error:

When I start the container I get this error in the logs:
Installing Channels DVR..
Downloading Channels DVR 2021.10.25.1801 (linux-x86_64) to //channels-dvr......
ln: channels-dvr/latest: Not supported
ERROR: Installation of Channels DVR failed.
ERROR: Please contact [email protected] with the full output above.

Here is my yaml:

version: "3.9"

services:
  channels-dvr:
    image: fancybits/channels-dvr:tve
    container_name: channels-dvr
    network_mode: host
    ports:
      - "8089:8089"
    restart: on-failure:10
    #devices:
    #  - /dev/dri:/dev/dri
    volumes:
  #    - /mnt/disk/dvr/config:/channels-dvr
  #    - /mnt/disk/dvr/recordings:/shares/DVR
      - channelsdvrrecordings:/channels-dvr
      - channelsdvrrecordings:/shares/DVR
volumes:
  channelsdvrrecordings:
    external: true

I'm not sure what external volumes are in docker, but there are two mount points and they should use separate volumes not share the same one.

The first volume is for the software and must be local and must use a linux compatible file system.

Thanks. I made the changes and everything starts up as expected.

You can use three backticks on a line before and after the text you want to format as code. Or use the Preformatted Text formatting button after highlighting the block of text to format.

```
Text to be formatted

```

Fixed. This is what I'm running and it works.


services:
  channels-dvr:
    image: fancybits/channels-dvr:tve
    container_name: channels-dvr
    network_mode: host
    ports:
      - "8089:8089"
    restart: on-failure:10
    #devices:
    #  - /dev/dri:/dev/dri
    volumes:
      - /mnt/disk/dvr/config:/channels-dvr
  #    - /mnt/disk/dvr/recordings:/shares/DVR
  #    - channelsdvrrecordings:/channels-dvr
      - channelsdvrrecordings:/shares/DVR
volumes:
  channelsdvrrecordings:
    external: true
2 Likes