All source listed below is under MIT license if no LICENSE file stating different is available.

Docker compose setup for gogs

Instructions

  1. Execute on bash
sudo apt instal git -y
git clone https://molodetz.nl/retoor/gogs-docker-compose-setup.git
docker compose up
  1. Configure using web interface (http://127.0.0.1:7331/):
  • database name must be set to gogs-db
  • database username must be set to gogs
  • database password must be set to gogs
  • choose built-in ssh service option and configure port to be 2222

That's all ! You have now a gogs server running dockerized!

.gitignore
compose.yml
Dockerfile
README.md