version: "3.7" services: cgit: build: context: "docker/cgit" dockerfile: "Dockerfile" env_file: .env volumes: - "${REPOSITORIES_PATH}:${CGIT_SCAN_PATH}" - "./data/assets:/usr/share/cgit-docker" networks: - traefik labels: - "traefik.enable=true" - "traefik.http.routers.cgit-root.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.cgit-root.entrypoints=websecure" - "traefik.http.routers.cgit-root.tls=true" - "traefik.http.routers.cgit-root.tls.certresolver=letsencrypt" networks: traefik: external: true name: "${TRAEFIK_NETWORK}"