February 27, 20242 yr Hi, wenn ich einen Docker-Container starte (mit einer eigenes definierten yml-Datei), dann wird mir die Netzwerk-ID 886768e2ef4a1fed873a16f08f162d25c7601e37b9e5701491bdeca4f18d667f anstatt des Namen traefik_proxy angezeigt. Kann ich das irgendwie korrigieren? Vielen Dank & beste Grüße Edited February 27, 20242 yr by tescher Pic upload
February 27, 20242 yr Community Expert 36 minutes ago, tescher said: mit einer eigenes definierten yml-Datei wie sieht der Inhalt der yml aus? Machst du das mit compose? da gibts doch was mit "container_name" oder so.
February 27, 20242 yr Author schon richtig, das bezieht sich aber nur auf den Container und nicht auf's Netzwerk.
February 27, 20242 yr Author Hier mal die yml --- version: '3.7' services: traefik: image: traefik:v2.11.0 container_name: traefik volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - /var/run/docker.sock:/var/run/docker.sock - ./config:/etc/traefik labels: - "traefik.enable=true" - "traefik.http.routers.traefik.rule=Host(`traefik.domain.tld`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))" - "traefik.http.routers.traefik.entrypoints=websecure" - "traefik.http.routers.traefik.tls.certresolver=default" - "traefik.http.routers.traefik.service=api@internal" - "traefik.http.routers.traefik.middlewares=auth@docker" - "traefik.http.middlewares.auth.basicauth.users=xxxxx:$$2y$$05$$C78Q8jK3QxxxxxxxxxxxxxxxxxxxYAPNMjzSgdovDd3v0xdDO" networks: - traefik_proxy ports: - "80:80" - "443:443" restart: always networks: traefik_proxy: external: true Edited February 27, 20242 yr by tescher
February 27, 20242 yr Community Expert Da ich das so nicht nutze bin ich dann leider raus. vielleicht hilft dir der Link:https://docs.docker.com/compose/compose-file/06-networks/ es soll auch was mit alias oder Label bei Network geben. Viel Erfolg
February 27, 20242 yr Author Trotzdem dankeschön. Ich hab' auch nochmal im englischen Bereich geschrieben. mal sehen. Gruß
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.