Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using variable using docker compose with portainer stacks & IPV6 update #11

Open
smailpouri opened this issue Aug 9, 2024 · 1 comment

Comments

@smailpouri
Copy link

When using ${HOSTNAME} for example it won't parse the info properly, I tried with duckdns or noip

version: '3.5'
services:
  dynamic-dns:
    container_name: ${CONTAINER}
    hostname: ${CONTAINER}
    image: joweisberg/dynamic-dns:latest
    restart: unless-stopped
    environment:
      - TZ=Europe/Paris
      - SERVICE=${SERVICE}
      - USER=${USER}
      - PASSWORD=${PASSWORD}
      - HOSTNAME=${HOSTNAME}
    healthcheck:
      test: /usr/bin/healthcheck
      interval: 10s
      timeout: 5s
      retries: 5
CONTAINER=ddns-duckdns
SERVICE=duckdns
[email protected]
PASSWORD=1111111111111
HOSTNAME=myhost.duckdns.org

And this below does not seem to do anything either.
UPDATEIPV6=1

@joweisberg
Copy link
Owner

joweisberg commented Aug 9, 2024

Hello, I use also variables without issues.
Are you sure variables are correcty declare on compose?
Can you check with inspect command bellow and check or share the result?

docker container inspect -f '{{range .Config.Env}}{{printf "%s\n" .}}{{end}}' [container_name|id]

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants