4 ms·
A handful of lines added to the prescribed docker-compose file (https://docs.gitea.io/en-us/install-with-docker/ https://docs.gitea.io/en-us/install-with-docker
by striking 9y ago
A handful of lines added to the prescribed docker-compose file (https://docs.gitea.io/en-us/install-with-docker/ https://docs.gitea.io/en-us/install-with-docker/) and you're actually there.
You would probably want to wrap it with nginx outside of docker-compose; attaching Certbot to it is thankfully very pleasant (https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-secu...).
To integrate with SendGrid, you'd set the app.ini (https://docs.gitea.io/en-us/config-cheat-sheet/ https://docs.gitea.io/en-us/config-cheat-sheet/) to point at SendGrid's SMTP relay (https://sendgrid.com/docs/API_Reference/SMTP_API/getting_started_smtp.html https://sendgrid.com/docs/API_Reference/SMTP_API/getting_sta...).
- pythonaut_16 9y agoCheck out projects like Traefik (https://github.com/containous/traefik https://github.com/containous/traefik) as well. Traefik is a reverse proxy that can automatically configure routes based on labels on your docker containers, and automatically setup Let's Encrypt certs for your subdomains. 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.
- mcny 9y agoCan 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!
- pythonaut_16 9y agoThis is the guide I used to set up my VPS: https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ 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!