version: "3" services: gitbox: image: gitea/gitea:latest container_name: gitea hostname: gitbox restart: unless-stopped volumes: - /root/gitea/data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro networks: - backend - proxy ports: - "2222:22" labels: - "traefik.enable=true" - "traefik.http.routers.gitbox.entrypoints=http" - "traefik.http.routers.gitbox.rule=Host(`git.office.kh3group.com`)" - "traefik.http.middlewares.gitbox-https-redirect.redirectscheme.scheme=https" - "traefik.http.routers.gitbox.middlewares=gitbox-https-redirect" - "traefik.http.routers.gitbox-secure.entrypoints=https" - "traefik.http.routers.gitbox-secure.rule=Host(`git.office.kh3group.com`)||Host(`git.kh3group.com`)" - "traefik.http.routers.gitbox-secure.tls=true" - "traefik.http.routers.gitbox-secure.service=gitbox" - "traefik.http.services.gitbox.loadbalancer.server.port=3000" - "traefik.docker.network=proxy" networks: backend: external: true proxy: external: true