# A disposable Gitea, the same version as the real one, whose npm registry the package publication # tests run against (scripts/test-package-publication.sh). Never the real registry: it starts empty, # keeps everything in the container, and is removed with its volumes when the test ends. services: gitea: image: docker.gitea.com/gitea:1.27.2@sha256:d20286ca2b2e170fdf628e7231b8a31a3220ade39ff462b55041d43d1fc757dd environment: GITEA__security__INSTALL_LOCK: "true" GITEA__database__DB_TYPE: sqlite3 # The URL clients reach it by: package metadata names tarballs under it. GITEA__server__ROOT_URL: ${GITEA_ROOT_URL:?GITEA_ROOT_URL is required} GITEA__server__HTTP_PORT: "3000" GITEA__server__OFFLINE_MODE: "true" GITEA__service__DISABLE_REGISTRATION: "true" GITEA__packages__ENABLED: "true" GITEA__actions__ENABLED: "false" GITEA__mailer__ENABLED: "false" GITEA__log__LEVEL: warn ports: - "127.0.0.1:${GITEA_PORT:?GITEA_PORT is required}:3000" healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:3000/api/healthz"] interval: 2s timeout: 3s retries: 60