gitea / gogs

apt -y install docker-compose

cat < docker-compose.yml
version: "2"

networks:
gitea:
external: false

services:
web:
image: gitea/gitea:latest
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=mysql
- DB_HOST=db:3306
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=gitea
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
ports:
- "80:3000"
- "222:22"
depends_on:
- db
db:
image: mysql:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
networks:
- gitea
volumes:
- ./mysql:/var/lib/mysql
EOF

docker-compose up -d
# docker-compose ps

http://GITEA_IP/install

# gitea
https://hub.docker.com/r/gitea/gitea

# gitea docker
docker pull gitea/gitea

# links
https://docs.gitea.io/en-us/install-with-docker/

Gogs (deprected)
# Ansible role
https://github.com/panticz/ansible/tree/master/roles/gogs

# Installation instructions
https://packager.io/gh/pkgr/gogs/install?bid=562#ubuntu-16-04-gogs
https://packager.io/gh/pkgr/gogs/install?bid=440