# PR-Agent webhook server for the self-hosted Gitea instance. # # Runs on the existing gitea_gitea network and publishes no ports. Gitea # reaches it as http://pr-agent:3000/api/v1/gitea_webhooks, so the webhook # endpoint is never internet-facing. Gitea still publishes comment links with # its own ROOT_URL (https://git.noelsabia.dev). # # Deployed by hand on server0 from /home/noel/self-hosted/pr-agent; see the # README next to this file. services: pr-agent: image: pragent/pr-agent:0.49.0-gitea_app container_name: pr-agent restart: unless-stopped env_file: - .env environment: PORT: "3000" # Importing the app costs roughly 250 MB. Two workers leave headroom on # the 3.8 GB host that also runs Gitea, its runner and a web app. GUNICORN_WORKERS: "2" mem_limit: 1g networks: - gitea healthcheck: # The server has no HTTP health route; an open TCP socket is enough to # distinguish a running gunicorn master from a crashed container. test: ["CMD", "python", "-c", "import socket; socket.create_connection(('127.0.0.1', 3000), 3).close()"] interval: 30s timeout: 5s retries: 3 start_period: 30s networks: gitea: external: true name: gitea_gitea