Skip to content

kdobmayer/gogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gogs

Docker image for Gogs self-hosted Git service.

Build Gogs docker image

Build with Docker

docker build -t <username>/gogs .

Build with docker-compose

docker-compose build

Run dockerized Gogs

  1. Create password files:

    • mysql/gogs_password.txt
    • mysql/root_password.txt
  2. Edit gogs/app.ini file and set the DOMAIN under the [server] section to the IP address of your host machine.

Run as a service

docker-compose up -d

Run as a stack

  1. Create a Swarm cluster

    docker swarm init
  2. Deploy the stack

    docker stack deploy -c docker-compose.yml gogs

About

Docker image for Gogs self-hosted Git service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published