mirror of
https://git.straybits.ca/straybits/docker-samples.git
synced 2024-11-07 18:22:26 +00:00
.. | ||
.env | ||
docker-compose.yml | ||
README.md |
Forgejo via. Cloudflare Tunnel
This example is a quick start to running an instance of the excellent Forgejo git server under Docker.
- Publicly exposed via. Cloudflare Tunnel
- Pre-configured Github Action-style Runners
- Mail delivery (assuming Mailgun, but adjustable to any SMTP server)
- Pre-configured (no installation wizard) including admin account
See the full blog post on this here: https://www.straybits.ca/2014/self-hosted-git-server/
Steps:
- Create a Tunnel on Cloudflare and grab the Tunnel Token
- Copy
docker-compose.yml
and.env
to a new folder - Update variables in
.env
making sure to generate random secrets for the various secrets marked with##REQUIRED##
- Make sure to update the
yourdomain.com
to match your name - Add end points to your Tunnel
git.yourdomain.com
>>http://server:3000
git-ssh.yourdomain.com
>>ssh://server:22
docker compose up -d
- Wait...
- Wait a bit more
- Visit
https://git.yourdomain.com
in your browser and login with the admin credentials in your.env
file. - Verify settings. (i.e. do you want to disable user signups, etc.)