infra(webhook): docker-compose.yml

This commit is contained in:
2026-02-21 19:22:30 +01:00
parent 8323f271e8
commit c2ae054a1e
2 changed files with 35 additions and 9 deletions

View File

@@ -1,17 +1,31 @@
[ [
{ {
"id": "bruchtal-deploy", "id": "bruchtal-deploy",
"execute-command": "/docker/deploy/deploy-bruchtal.sh", "execute-command": "/docker/Bruchtal/deploy/deploy-bruchtal.sh",
"command-working-directory": "/docker/Bruchtal", "command-working-directory": "/docker/Bruchtal",
"trigger-rule": { "trigger-rule": {
"match": { "and": [
"type": "payload-hmac-sha256", {
"secret": "!!Zazen17-Doshin17**12345", "match": {
"parameter": { "type": "payload-hmac-sha256",
"source": "header", "secret": "!!Zazen17**",
"name": "X-Gitea-Signature" "parameter": {
"source": "header",
"name": "X-Gitea-Signature"
}
}
},
{
"match": {
"type": "value",
"parameter": {
"source": "payload",
"name": "ref"
},
"value": "refs/heads/main"
}
} }
} ]
} }
} }
] ]

View File

@@ -0,0 +1,12 @@
version: "3.8"
services:
bruchtal-webhook:
image: webhook:2.8.1
container_name: bruchtal-webhook
restart: unless-stopped
ports:
- "9001:9001"
volumes:
- /docker/Bruchtal/deploy/hooks.json:/hooks/hooks.json:ro
- /docker/Bruchtal:/docker/Bruchtal:rw
command: ["-hooks", "/hooks/hooks.json", "-verbose", "-port", "9001", "-ip", "0.0.0.0"]