43 lines
1.6 KiB
YAML
43 lines
1.6 KiB
YAML
gitea:
|
|
depends_on:
|
|
- postgres
|
|
deploy:
|
|
labels:
|
|
traefik.enable: "true"
|
|
traefik.http.routers.gitea-http-rtr.entrypoints: websecure
|
|
traefik.http.routers.gitea-http-rtr.rule: "Host(`gitea.your.domain`)"
|
|
traefik.http.routers.gitea-http-rtr.service: "gitea"
|
|
traefik.http.services.gitea.loadbalancer.server.port: "3000"
|
|
traefik.tcp.routers.gitea-ssh-rtr.entrypoints: ssh
|
|
traefik.tcp.routers.gitea-ssh-rtr.rule: 'HostSNI(`*`)'
|
|
traefik.tcp.routers.gitea-ssh-rtr.service: "gitea-ssh"
|
|
traefik.tcp.services.gitea-ssh.loadbalancer.server.port: "2222"
|
|
replicas: 1
|
|
environment:
|
|
GITEA__database__DB_TYPE: "postgres"
|
|
GITEA__database__HOST: "postgres"
|
|
GITEA__database__NAME: "gitea"
|
|
GITEA__database__USER: "gitea"
|
|
GITEA__database__PASSWORD__FILE: "/run/secrets/gitea"
|
|
GITEA__mailer__ENABLED: "true"
|
|
GITEA__mailer__FROM: "gitea@your.domain"
|
|
GITEA__mailer__PROTOCOL: "smtp+starttls"
|
|
GITEA__mailer__SMTP_ADDR: "munin.your.domain"
|
|
GITEA__mailer__SMTP_PORT: "25"
|
|
GITEA__server__ROOT_URL: "https://gitea.your.domain"
|
|
GITEA__cors__ENABLED: "true"
|
|
GITEA__cors__ALLOW_DOMAIN: "https://*.your.domain"
|
|
GITEA__server__DOMAIN: "gitea.your.domain"
|
|
image: "gitea/gitea:1-rootless"
|
|
logging:
|
|
driver: journald
|
|
networks:
|
|
- homelab
|
|
restart: on-failure
|
|
secrets:
|
|
- gitea
|
|
user: "10004:10004"
|
|
volumes:
|
|
- "/srv/data/docker/gitea/data:/var/lib/gitea:rw"
|
|
- "/srv/data/docker/gitea/config:/etc/gitea:rw"
|