Config file (volume) problem with a python docker container (cloudflare-ddns)

Post Reply
micattack
Starting out
Posts: 14
Joined: Sat Mar 06, 2021 12:25 am

Config file (volume) problem with a python docker container (cloudflare-ddns)

Post by micattack »

Hi all!

I tried everything I could find in these forums. I am trying to get https://hub.docker.com/r/timothyjmiller/cloudflare-ddns to run in Container Station.

But maybe it is because I am new to docker or because I am doing something totally wrong, but I do not seem to get the config.json into the running "app" (confused about the container/volume/image lingo as well, sorry)

My latest attempt was to make a config-file to "hard link" the config from qnap to the docker container, but it still doesnt work.

Code: Select all

version: "3.7"
services:
  cloudflare-ddns:
    image: timothyjmiller/cloudflare-ddns:latest
    container_name: cloudflare-ddns-app
    security_opt:
      - no-new-privileges:true
    network_mode: "host"
    environment:
      - PUID=1001
      - PGID=100
    volumes:
      - /share/CACHEDEV1_DATA/container_data/cloudflare-ddns/config.json:/config.json
    deploy:
      resources:
        limits:
          cpus: '0.50'
          memory: 64M
    restart: unless-stopped

Also, maybe because this is docker image python based, I cannot open a shell/console inside this when it runs.

Please be gentle and point me to the right documentation, if this is a total newbie mistake. Maybe Container Station automatically creates some local (qnap ssh accessible) folder where I can find and configure the config.json?

Thanks
Leo
--
QLocker survivor; backup enthusiast
TS-351 with 5. + something FW (always up2date)
Celeron J1800/8GB RAM
RAID-5 (2x 256GB Transcent TS256GMTE110S + 3x 6TB Seagate ST6000VN001)
Post Reply

Return to “Container Station”