version: "3.9" services: gitesin: 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" - "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: - /data/gitea:/data ports: - "2222:22" links: - postgresql networks: - traefik postgresql: image: postgres:alpine container_name: "postgresql" environment: - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" volumes: - /data/postgresql:/var/lib/postgresql/data networks: - traefik networks: traefik: external: true