Кубанычбек
Кубанычбек
DDokploy
Created by Кубанычбек on 4/27/2025 in #old-help
customizing labels when used locally
Hi all, I have a question about saving the original compose file for deployment I have a compose file in which I have prescribed the network and settings for the container, in the form of labels
 networks: - dokploy-network - local-lan labels: - "traefik.enable=true" - "traefik.http.routers.beszel.rule=Host(beszel.lan)" - "traefik.http.routers.beszel.entrypoints=web" - "traefik.http.services.beszel.loadbalancer.server.port=8090" - "traefik.http.routers.beszel.middlewares=local-only" - "traefik.http.middlewares.local-only.ipAllowList.sourceRange=127.0.0.1/32,192.168.0.0/16" networks: dokploy-network: external: true local-lan: external: true Deployment without adding anything from dokploy and saving the compose file works if I don't add a domain. as soon as I add a domain, I add automatically generated labels to my labels and get a mess. labels: - traefik.docker.network=dokploy-network - traefik.http.routers.apps-beszel-fxuyoj-2-web.rule=Host(beszel.lan) - traefik.http.routers.apps-beszel-fxuyoj-2-web.entrypoints=web - traefik.http.services.apps-beszel-fxuyoj-2-web.loadbalancer.server.port=8090 - traefik.http.routers.apps-beszel-fxuyoj-2-web.service=apps-beszel-fxuyoj-2-web - traefik.enable=true - traefik.http.routers.beszel.rule=Host(beszel.lan) - traefik.http.routers.beszel.entrypoints=web - traefik.http.services.beszel.loadbalancer.server.port=8090 - traefik.http.routers.beszel.middlewares=local-only - traefik.http.middlewares.local-only.ipAllowList.sourceRange=127.0.0.1/32,192.168.0.0/16
4 replies