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/162 Replies
It turns out that I have duplicated information. And also, if I want to keep only my network - local-only, then in any case dokploy-network will be added to the container, but I don't want that. now the solution for me is not to specify the domain in dokploy, because I use the project locally, without going online. But I plan to put some projects on the network and will need certificates and https? I will have to add a domain and the labels will be a mess... or will all labels that I add manually, without project labels, work? And the network and domain information that I entered manually will have to be removed? Because dokploy will automatically substitute it?
guys, can anyone help?
just simple remove all the domains and add the labels manually