Docker image for Gogs self-hosted Git service.
docker build -t <username>/gogs .docker-compose build-
Create password files:
- mysql/gogs_password.txt
- mysql/root_password.txt
-
Edit gogs/app.ini file and set the
DOMAINunder the[server]section to the IP address of your host machine.
docker-compose up -d-
Create a Swarm cluster
docker swarm init
-
Deploy the stack
docker stack deploy -c docker-compose.yml gogs