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