version: "3.9" x-traefik-label: &traefik-label traefik.enable: true traefik.http.routers.gogs.service: gogs traefik.http.services.gogs.loadbalancer.server.port: 3000 services: gogs: image: gogs/gogs container_name: gogs labels: <<: *traefik-label privileged: true expose: - "3000" - "22" user: root volumes: - /volume5/storage/docker-data/gogs/data/:/data/ - /volume5/storage/docker-data/gogs/backup/:/backup/