News for hackers. Stuff that matters.
Re:Gitea: Open source, self-hosted GitHub alternative by mcny on Sunday May 06, 2018 @11:12AM (#17006674)
I would like to see a full-fledged docker installer something to the effect of the discourse installer that I can put on something like digital ocean or my own machine, handles https in an opinionated way (let's encrypt), and integrates with popular email services like sendgrid or mailgun (with generous free tiers).
Re:Gitea: Open source, self-hosted GitHub alternative by striking on Sunday May 06, 2018 @11:20AM (#17006712)
A handful of lines added to the prescribed docker-compose file (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-secu...).

To integrate with SendGrid, you'd set the app.ini (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_sta...).

Re:Gitea: Open source, self-hosted GitHub alternative by pythonaut_16 on Sunday May 06, 2018 @05:24PM (#17008638)
Check out projects like 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.

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!

Re:Gitea: Open source, self-hosted GitHub alternative by grinsekatze on Sunday May 06, 2018 @11:44AM (#17006797)
I have made a tool with which I can easily deploy and backup/restore dockerized web apps. Configuring and deploying gitea (or any other service I integrated so far) only takes a couple of minutes. Services are run behind an nginx reverse proxy container and Let’s Encrypt certificates are automatically issued if you choose so during config. The only requirement is docker.

I have been using it for about a year and recently put it on github, because I found it useful enough to share.

You an find it here https://github.com/chaosbunker/dockerbunker

Maybe not exactly what you are looking for, since I am not familiar with the discourse installer, but maybe interesting for someone? I’m happy about some feedback, since I never actively shared this until now.

Re:Gitea: Open source, self-hosted GitHub alternative by rajington on Sunday May 06, 2018 @11:20AM (#17006710)
Re:Gitea: Open source, self-hosted GitHub alternative by amq on Sunday May 06, 2018 @11:26AM (#17006732)
I find the discourse intall approach to be outdated, to say the least. It reminds me of myself tinkering with docker for the first time. Just provide me a docker image and deployment examples for compose and kubernetes.
Re:Gitea: Open source, self-hosted GitHub alternative by nik736 on Sunday May 06, 2018 @11:12AM (#17006678)
Why though? It's a single binary.
Re:Gitea: Open source, self-hosted GitHub alternative by coppolaemilio on Sunday May 06, 2018 @11:21AM (#17006719)
You need to docker those dockers to make it docker.
Re:Gitea: Open source, self-hosted GitHub alternative by mynewtb on Sunday May 06, 2018 @11:34AM (#17006766)
That does not sound very webscale imho.