owntracks / docker-recorder

Docker image for OwnTracks Recorder
151 stars 68 forks source link

Mounts are ignored in docker compose #60

Closed ippocratis closed 2 years ago

ippocratis commented 2 years ago

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 commented 2 years ago

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

jpmens commented 2 years ago

So, is it working or is it not?

ippocratis commented 2 years ago

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

jpmens commented 2 years ago

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.