From 20f6d37207e9bfa97bff8be768cfd1dc6d0a243b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gacit=C3=BAa?= Date: Sat, 4 Apr 2026 07:27:46 -0300 Subject: [PATCH] Add Gitea --- gitea/docker-compose.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 gitea/docker-compose.yml diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml new file mode 100644 index 0000000..cc48484 --- /dev/null +++ b/gitea/docker-compose.yml @@ -0,0 +1,46 @@ +networks: + gitea: + external: true + +services: + server: + image: docker.gitea.com/gitea:1.25 + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=db:5432 + - GITEA__database__NAME=gitea + - GITEA__database__USER=gitea + - GITEA__database__PASSWD=mypassword + restart: unless-stopped + networks: + - gitea + volumes: + - ./gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "2222:22" + depends_on: + db: + condition: service_healthy + + db: + image: postgres:15 + restart: unless-stopped + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=mypassword + - POSTGRES_DB=gitea + networks: + - gitea + volumes: + - ./postgres:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U gitea -d gitea"] + interval: 10s + timeout: 5s + retries: 5 \ No newline at end of file