name: gitea services: server: image: docker.gitea.com/gitea:28.1.0 container_name: gitea volumes: - /srv/data/gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro environment: USER_UID: "1000" USER_GID: "1000" networks: - proxy restart: unless-stopped deploy: resources: limits: cpus: "1.0" memory: 512M security_opt: - no-new-privileges:true networks: proxy: external: true