Re:Gitea: Open source, self-hosted GitHub alternative
by mcny on Monday May 07, 2018 @09:50AM
(#17012665)
Can you point me to a resource to do this? I have played with traefik before but I only served multiple websites on different ports. Thank you!
Re:Gitea: Open source, self-hosted GitHub alternative
by pythonaut_16 on Monday May 07, 2018 @10:01AM
(#17012768)
This is the guide I used to set up my VPS: https://docs.traefik.io/user-guide/docker-and-lets-encrypt/
Basically you have all of your containers join the Docker network that your Traefik container is running on. Each container needs to expose a port (but not bind to the parent). The Traefik container will bind to port 80 on the parent. That guide should explain everything.
Let me know if you have any other questions or get stuck, I'd be happy to try and help!
E.g. I add a label to my Gitea container to say "Serve this from git.mydomain.com", and Traefik will start redirecting requests and automatically configure a Let's Encrypt cert.