Gitea runner

This commit is contained in:
Brieuc Dubois 2023-12-26 19:02:10 +01:00
parent f4fd0ba87b
commit eae8045f41
1 changed files with 13 additions and 5 deletions

View File

@ -2,12 +2,12 @@ services:
gitea: gitea:
container_name: gitea container_name: gitea
image: gitea/gitea:1 image: gitea/gitea:1
restart: unless-stopped
environment: environment:
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
- GITEA__database__PASSWD=${POSTGRES_PASSWORD} - GITEA__database__PASSWD=${POSTGRES_PASSWORD}
- GITEA__mailer__PASSWD=${SMTP_PASSWORD} - GITEA__mailer__PASSWD=${SMTP_PASSWORD}
restart: unless-stopped
volumes: volumes:
- $DATA/gitea:/data - $DATA/gitea:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
@ -25,11 +25,19 @@ services:
- "traefik.http.routers.gitea.tls.certresolver=http" - "traefik.http.routers.gitea.tls.certresolver=http"
- "traefik.http.routers.gitea.entrypoints=internalsecure,externalsecure" - "traefik.http.routers.gitea.entrypoints=internalsecure,externalsecure"
networks: networks:
- gitea
- external - external
- storage - storage
gitea-runner:
container_name: gitea-runner
image: gitea/act_runner:latest
restart: unless-stopped
environment:
- GITEA_INSTANCE_URL=https://git.bhasher.com
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks: networks:
external: gitea:
external: true
storage:
external: true