docker-recorder icon indicating copy to clipboard operation
docker-recorder copied to clipboard

Mounts are ignored in docker compose

Open ippocratis opened this issue 1 year ago • 1 comments

I am running owntracks-recorder with docker-compose created some mounts for local folders on host with the container for config and store. But they are ignored and random volumes are created instead

My docker-compse.yml

version: '3'

services:

  otrecorder:
    container_name: ot-recorder
    image: jessestuart/owntracks
    environment:
      - OTR_PORT=0  # disables MQTT
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /run/media/ippo/TOSHIBA/owntracks-recorder/config:/config
      - /run/media/ippo/TOSHIBA/owntracks-recorder/store:/store
    ports:
      - 8083:8083
    restart: unless-stopped

The run/media/ippo/TOSHIBA/owntracks-recorder/store folder is empty

docker inspect container_name shows volume under "/var/lib/docker/volumes/ca799ff14564cd2f5850ff4ce8489b61dd87a71ce9220dbd699f85fa9852eef4/_data" which the recorder location data etc are stored

ippocratis avatar Aug 31 '22 19:08 ippocratis

/run/media/ippo/TOSHIBA/owntracks-recorder/store:/owntracks/recorder/store Works instead

ippocratis avatar Aug 31 '22 20:08 ippocratis

So, is it working or is it not?

jpmens avatar Sep 01 '22 17:09 jpmens

So, is it working or is it not?

Well it works if I Change the Mount path insside the container to /owntracks/recorder/store According to https://github.com/owntracks/docker-recorder The recorder store had to be mounted in to /store in the container recorder_store:/store

Note that I dont use the "official" owntracks image as there is no arm64 image available

ippocratis avatar Sep 01 '22 20:09 ippocratis

The documentation says:

The /store volume of the container is used for persistent storage of location data. The volume needs to be created explicitly.

If this is incorrect, let us know so we can amend the documentation.

jpmens avatar Sep 07 '22 11:09 jpmens