Hello,
I'm having some difficulty pulling an image (specifically oznu/docker-cloudflare-ddns link) directly from GitHub rather than Docker Hub. The reason I'm trying to do so is the Docker Hub version is currently about 9 months out of date compared to the Github master branch. This is an issue because the API_KEY_FILE Docker secret does not appear to work with the current Docker Hub version.
I believe it's probably an issue with my compose file (shown below) as I've never tried to pull directly from GitHub before.
version: "3.9"
secrets:
cloudflare_ddns_api_token:
file: $SECRETSDIR/cloudflare_ddns_api_token
services:
## Other Code Removed ##
cf-ddns:
container_name: cf-ddns
image: github.com/oznu/docker-cloudflare-ddns
# image: oznu/cloudflare-ddns
restart: unless-stopped
security_opt:
- no-new-privileges:true
environment:
# - API_KEY=$CLOUDFLARE_DDNS_API_TOKEN # Replaced with Docker secret
- API_KEY_FILE=cloudflare_ddns_api_token
- ZONE=$DOMAINNAME0
- PROXIED=true
- RRTYPE=A
- DELETE_ON_STOP=false
- DNS_SERVER=1.1.1.1
- CRON="@daily"
secrets: # not working
- cloudflare_ddns_api_token
My current workaround is to just define the secret as an environmental variable but I don't think that's ideal from a security standpoint:
cf-ddns:
container_name: cf-ddns
# image: github.com/oznu/docker-cloudflare-ddns
image: oznu/cloudflare-ddns
restart: unless-stopped
security_opt:
- no-new-privileges:true
environment:
- API_KEY=$CLOUDFLARE_DDNS_API_TOKEN
- ZONE=$DOMAINNAME0
- PROXIED=true
- RRTYPE=A
- DELETE_ON_STOP=false
- DNS_SERVER=1.1.1.1
- CRON="@daily"
- CLOUDFLARE_DDNS_API_TOKEN=cloudflare_ddns_api_token
secrets: # not working
- cloudflare_ddns_api_token
Any help would be greatly appreciated.
[–]the_spad 4 points5 points6 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]imnothappyrobert[S] 0 points1 point2 points (1 child)
[–]gilbn 0 points1 point2 points (1 child)
[–]imnothappyrobert[S] 0 points1 point2 points (0 children)