tambah webhook

This commit is contained in:
Saufi
2026-05-22 16:12:05 +08:00
parent d9ecdfc8f6
commit 2a67d937e8
5 changed files with 74 additions and 0 deletions

View File

@@ -62,6 +62,22 @@ services:
APP_ENV: production
extra_hosts: []
# ── Webhook Deploy (GitHub → auto pull + migrate) ──────────────────────────
webhook:
build:
context: ./docker/webhook
container_name: ecert_webhook
restart: always
environment:
WEBHOOK_SECRET: ${WEBHOOK_SECRET}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.ssh:/root/.ssh:ro
- ./docker/webhook/hooks.json:/etc/webhook/hooks.json:ro
- ./deploy.sh:/deploy.sh:ro
- .:/srv/ecert
command: -hooks=/etc/webhook/hooks.json -template -verbose
###############################################################################
volumes:
storage_data: