version: "3" services: gitea: image: gitea/gitea:1.18.3 container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 - GITEA__database__DB_TYPE=mysql - GITEA__database__HOST=10.10.10.2:3306 - GITEA__database__NAME=base - GITEA__database__USER=user - GITEA__database__PASSWD=pass restart: always networks: - web volumes: - /opt/gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro labels: - "traefik.enable=true" - "traefik.http.routers.gitea.rule=Host(`gitea_url`)" - "traefik.http.services.gitea-websecure.loadbalancer.server.port=3000" - "traefik.http.routers.gitea.tls=true" - "traefik.http.routers.gitea.tls.certresolver=http" networks: web: external: true