Hi! I'd like to use docker-compose to bring up my containers and traefik reverse proxy, and use the same file to deploy to production using docker swarm. I've read through the documentation, and it seems like for that I'll need duplicate labels in docker-compose.yml
: some under labels
and some under deploy.labels
. Is that right, or can I share these labels between environments? If I can share them, how do I handle the fact that in prod they will have proper domain names (x.domain.com, y.domain.com, etc.) but on my local machine they will be fake domain names (x.domain.local, y.domain.local, etc.)? Finally, I've seen plenty of guidance on setting up SSL certificates with LetsEncrypt in production, but how do I handle that in development, on my local machine? I don't imagine LetsEncrypt will issue me a cert for x.domain.local, so should I use self-signed certs only in dev mode or something?
I've searched the documentation, GitHub issues, and the web and couldn't seem to find this info, though I imagine it's something everyone on here has had to encounter. Hope you can help! Thanks.