diff --git a/README.md b/README.md index 236413d..9548621 100644 --- a/README.md +++ b/README.md @@ -273,12 +273,13 @@ A collection of delicious docker recipes. - [x] ghost - [x] gitlab/gitlab-ce - [x] atlassianlabs/gostatsd +- [x] gitea/gitea :cn: - [x] gliderlabs/logspout - [x] gliderlabs/registrator - [ ] glot - [ ] bash - [ ] python -- [x] gogs :cn: +- [x] gogs/gogs :cn: - [x] haproxy - [x] jmxtrans/jmxtrans - [x] wurstmeister/kafka diff --git a/drone/docker-compose.yml b/drone/docker-compose.yml index 0ab2b5f..dc50112 100644 --- a/drone/docker-compose.yml +++ b/drone/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3.7' +version: "3.7" services: drone: diff --git a/gitea/README.md b/gitea/README.md new file mode 100644 index 0000000..b0e1bc5 --- /dev/null +++ b/gitea/README.md @@ -0,0 +1,7 @@ +gitea +===== + +[Gitea][1] is a community managed lightweight code hosting solution written in +Go. It is published under the MIT license. + +[1]: https://gitea.io/ diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml new file mode 100644 index 0000000..1362015 --- /dev/null +++ b/gitea/docker-compose.yml @@ -0,0 +1,34 @@ +version: "3.7" + +services: + + server: + image: gitea/gitea + ports: + - "2222:22" + - "3000:3000" + volumes: + - ./data/gitea:/data + environment: + - USER_UID=1000 + - USER_GID=1000 + - DB_TYPE=postgres + - DB_HOST=postgres:5432 + - DB_NAME=gitea + - DB_USER=gitea + - DB_PASSWD=gitea + depends_on: + - postgres + restart: always + + postgres: + image: postgres:12-alpine + ports: + - "5432:5432" + volumes: + - ./data/postgres:/var/lib/postgresql/data + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=gitea + - POSTGRES_DB=gitea + restart: always