add stuff

This commit is contained in:
2026-05-18 19:09:22 +00:00
parent fb323b40a5
commit 5b4bc7118d
2 changed files with 104 additions and 0 deletions
+76
View File
@@ -0,0 +1,76 @@
services:
git:
image: gitea/gitea:latest-rootless
restart: always
networks:
- caddy
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=gitdb:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=<fill-me-in>
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "127.0.0.1:3000:3000"
- "2222:2222"
depends_on:
- gitdb
gitdb:
image: postgres:14
restart: always
networks:
- caddy
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=<fill-me-in>
- POSTGRES_DB=gitea
volumes:
- ./postgres:/var/lib/postgresql/data
runner:
build:
context: .
dockerfile: Dockerfile-runner
restart: always
privileged: true
depends_on:
- git
volumes:
- ./data/runner:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GITEA_INSTANCE_URL=https://git.example.com
- GITEA_RUNNER_REGISTRATION_TOKEN=<replace>
- DOCKER_HOST=unix:///var/run/docker.sock
- DOCKERD_ROOTLESS_ROOTLESSKIT_NET=slirp4netns
- DOCKERD_ROOTLESS_ROOTLESSKIT_MTU=65520
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest,host:host
runner-2:
build:
context: .
dockerfile: Dockerfile-runner
restart: always
privileged: true
depends_on:
- git
volumes:
- ./data/runner-2:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GITEA_INSTANCE_URL=https://git.example.com
- GITEA_RUNNER_REGISTRATION_TOKEN=<replace>
- DOCKER_HOST=unix:///var/run/docker.sock
- DOCKERD_ROOTLESS_ROOTLESSKIT_NET=slirp4netns
- DOCKERD_ROOTLESS_ROOTLESSKIT_MTU=65520
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest,host:host
networks:
caddy:
name: caddy
external: true