From 9dca5fd0b4caa7599cb041b02fa9a1505899eb30 Mon Sep 17 00:00:00 2001 From: hitanshu Date: Tue, 7 Apr 2026 21:46:43 +0000 Subject: [PATCH] Add Gitea Event Bridge application files --- docker-compose.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..dad0d5d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,34 @@ +version: '3.8' + +services: + gitea-bridge: + build: + context: . + dockerfile: Dockerfile + container_name: gitea-event-bridge + ports: + - "5000:5000" + volumes: + - ./logs:/app/logs + environment: + - HOST=0.0.0.0 + - PORT=5000 + - DEBUG=false + - OPENCODE_URL=http://host.docker.internal:8080 + - LOG_FILE=/app/logs/activity.json + - GITEA_WEBHOOK_SECRET=${GITEA_WEBHOOK_SECRET:-} + - AUTO_TRIGGER_PIPELINE=true + - AUTO_TRIGGER_REVIEW=true + restart: unless-stopped + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:5000/health"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + networks: + - gitea-network + +networks: + gitea-network: + driver: bridge \ No newline at end of file