This commit is contained in:
Saufi
2026-06-16 21:03:26 +08:00
parent 296d31b90c
commit 77a6d89bc2
5 changed files with 110 additions and 0 deletions

View File

@@ -61,5 +61,25 @@ services:
depends_on:
- app
# Webhook deploy (GitHub push -> git pull + rebuild). Dengar 127.0.0.1:9001;
# host nginx reverse-proxy /hooks/ ke sini. WEBHOOK_SECRET dari .env.docker.
webhook:
build:
context: ./docker/webhook
image: taklimatspr-webhook:latest
restart: unless-stopped
env_file:
- .env.docker
ports:
- "127.0.0.1:9001:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/webhook/hooks.json:/etc/webhook/hooks.json:ro
- ./deploy.sh:/deploy.sh:ro
- .:/srv/spr2026_taklimat
# Kunci SSH host utk `git pull` repo peribadi (abaikan jika repo awam/HTTPS).
- /root/.ssh:/root/.ssh:ro
command: -hooks=/etc/webhook/hooks.json -hotreload -verbose
volumes:
app_storage: