Docker Gogs Mysql Save

Gogs installer with Docker

Project README

Docker Gogs MySQL Build Status GitHub version

Gogs is a painless self-hosted Git service

Getting started

  1. Clone project :

    git clone https://github.com/nanoninja/docker-gogs-mysql.git
    
  2. You could customize your settings before installation :

    Edit .env file

  3. Install :

    use Makefile

    # show commands
    make help
    
    sudo make install
    

    or by entering the following commands

    # Copy the configuration file from the dist file
    cp etc/app.ini.dist etc/app.ini
    
    # Start services
    sudo docker-compose up -d
    
    # Generate self-signed certificates
    source .env && sudo docker-compose exec -T gogsapp bash -c "cd /app/gogs; exec /app/gogs/gogs cert -ca=true -duration=$GOGS_CERT_DURATION -host=$GOGS_HTTP_DOMAIN"
    
    # Copy the configuration file to the container
    sudo docker cp $(pwd)/etc/app.ini $(sudo docker-compose ps -q gogsapp):/data/gogs/conf/app.ini
    
    # Restart the server to reload the configuration
    sudo docker-compose restart gogsapp
    
    # Automatic form filling with cURL
    sudo docker run --env-file $(pwd)/.env --rm -v $(pwd)/bin/install.sh:/install.sh --net=host appropriate/curl /bin/sh /install.sh
    
  4. Open your favorite browser :


Using Git with SSH

Configure Git to trust a self-signed certificate

Local

git -c http.sslVerify=false push origin master

Global

git config --global http.sslVerify false

Unset Global

git config --global --unset http.sslVerify

Images to use

Open Source Agenda is not affiliated with "Docker Gogs Mysql" Project. README Source: nanoninja/docker-gogs-mysql
Stars
29
Open Issues
0
Last Commit
5 years ago

Open Source Agenda Badge

Open Source Agenda Rating