forked from Hithomelabs/Gitea_Event_Bridge
Add Gitea Event Bridge application files
This commit is contained in:
parent
942f008c18
commit
9dca5fd0b4
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user