2023-12-18 21:24:44 +01:00
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
container_name: gitea
|
|
|
|
image: gitea/gitea:1
|
2023-12-26 19:02:10 +01:00
|
|
|
restart: unless-stopped
|
2023-12-18 21:24:44 +01:00
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
|
|
|
|
- GITEA__mailer__PASSWD=${SMTP_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- $DATA/gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
2023-12-20 00:43:01 +01:00
|
|
|
- redis
|
|
|
|
ports:
|
|
|
|
- 2222:22/tcp
|
2023-12-18 21:24:44 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.gitea.rule=Host(`git.bhasher.com`)"
|
|
|
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
|
|
|
- "traefik.http.routers.gitea.tls=true"
|
|
|
|
- "traefik.http.routers.gitea.tls.certresolver=http"
|
2023-12-20 08:48:13 +01:00
|
|
|
- "traefik.http.routers.gitea.entrypoints=internalsecure,externalsecure"
|
2023-12-18 21:24:44 +01:00
|
|
|
networks:
|
2023-12-26 19:02:10 +01:00
|
|
|
- gitea
|
2023-12-18 21:24:44 +01:00
|
|
|
- external
|
|
|
|
- storage
|
2023-12-26 20:04:44 +01:00
|
|
|
|
2023-12-26 19:02:10 +01:00
|
|
|
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
|
2023-12-26 22:59:06 +01:00
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
2023-12-26 20:04:44 +01:00
|
|
|
networks:
|
|
|
|
- gitea
|
2023-12-26 19:02:10 +01:00
|
|
|
|
2023-12-18 21:24:44 +01:00
|
|
|
|
|
|
|
networks:
|
2023-12-26 19:02:10 +01:00
|
|
|
gitea:
|