Gitea
Community managed, lightweight code hosting solution (fork of Gogs).
Directory Structure
- .env
- docker-compose.yml
docker-compose.yml
version: "2"
services:
server:
image: gitea/gitea:1.22.2-rootless
environment:
+ - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432
+ - GITEA__database__NAME=gitea
+ - GITEA__database__USER=gitea
+ - GITEA__database__PASSWD=gitea
restart: always
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:2222"
+ depends_on:
+ - db
+
+ db:
+ image: postgres:14
+ restart: always
+ environment:
+ - POSTGRES_USER=gitea
+ - POSTGRES_PASSWORD=gitea
+ - POSTGRES_DB=gitea
+ volumes:
+ - ./postgres:/var/lib/postgresql/dataResources
Website: https://about.gitea.com/
GitHub: https://github.com/go-gitea/gitea
Docker Hub (official): https://hub.docker.com/r/gitea/gitea
Docker Hub (Bitnami): https://hub.docker.com/r/bitnami/gitea
Configuration: https://docs.gitea.com/installation/install-with-docker-rootless/