homelab/bxl-shp/apps/docker-compose.gitea.yaml

36 lines
900 B
YAML
Raw Normal View History

2023-12-18 21:24:44 +01:00
services:
gitea:
container_name: gitea
image: gitea/gitea:1
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
- GITEA__mailer__PASSWD=${SMTP_PASSWORD}
restart: unless-stopped
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:
- external
- storage
networks:
external:
external: true
storage:
external: true