docker-deploy/gitea/docker-compose.yml

36 lines
1.1 KiB
YAML
Raw Normal View History

2021-12-02 23:21:17 +08:00
version: "3.9"
services:
gitea:
image: gitea/gitea
container_name: "git.esin.io"
environment:
- "TZ=Asia/Shanghai"
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitea.rule=Host(`git.esin.io`)"
- "traefik.http.routers.gitea.entrypoints=websecure"
- "traefik.http.routers.gitea.tls=true"
2021-12-02 23:43:36 +08:00
- "traefik.http.routers.gitea.tls.certresolver=letsencrypt"
2021-12-03 04:18:31 +08:00
- "traefik.http.routers.gitea.tls.domains[0].main=esin.io"
- "traefik.http.routers.gitea.tls.domains[0].sans=*.esin.io"
2021-12-02 23:21:17 +08:00
- "traefik.http.routers.gitea.middlewares=gitea-mw"
- "traefik.http.middlewares.gitea-mw.compress=true"
- "traefik.http.middlewares.gitea-mw.compress.excludedcontenttypes=text/event-stream"
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
volumes:
- ./gitea:/data
ports:
- "2222:22"
external_links:
- postgresql
networks:
2021-12-03 04:18:31 +08:00
traefik:
priority: 1000
database:
priority: 100
2021-12-02 23:21:17 +08:00
networks:
traefik:
external: true
database:
external: true