From 7f70fb37ce583f701b90960dbff890c548457a38 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 2 Nov 2025 17:56:33 +0100 Subject: [PATCH] =?UTF-8?q?gitea/docker-compose.yml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gitea/docker-compose.yml | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 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..b34b093 --- /dev/null +++ b/gitea/docker-compose.yml @@ -0,0 +1,51 @@ +services: + db: + image: postgres:17 + container_name: gitea-db + hostname: gitea-db + security_opt: + - no-new-privileges:true + healthcheck: + test: ["CMD", "pg_isready", "-q", "-d", "gitea", "-U", "giteauser"] + timeout: 45s + interval: 10s + retries: 10 + volumes: + - db:/var/lib/postgresql/data:rw + environment: + - POSTGRES_DB=gitea + - POSTGRES_USER=giteauser + - POSTGRES_PASSWORD=giteapass + restart: on-failure:5 + + web: + image: gitea/gitea:latest + container_name: gitea + hostname: gitea + security_opt: + - no-new-privileges:true + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1 + ports: + - 3052:3000 + - 2222:22 + volumes: + - data:/data:rw + - repositories:/data/git/repositories:rw + - /etc/TZ:/etc/TZ:ro + - /etc/localtime:/etc/localtime:ro + environment: + - USER_UID=1026 + - USER_GID=100 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=gitea-db:5432 + - GITEA__database__NAME=gitea + - GITEA__database__USER=giteauser + - GITEA__database__PASSWD=giteapass + - ROOT_URL=https://gitea.scheidel.biz + restart: on-failure:5 + +volumes: + db: + data: + repositories: \ No newline at end of file