feat: Implement automated project deployment using a webhook service and a shell script.

This commit is contained in:
2026-01-17 18:35:26 +03:00
parent 9b4b1277ee
commit 0ccef43ef6
2 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
services:
webhook:
image: alpine:3.19
container_name: webhook-receiver
command: [ "sh", "-c", "apk add --no-cache webhook docker-cli && webhook -hooks /etc/webhook/hooks.json -verbose" ]
volumes:
- ./hooks.json:/etc/webhook/hooks.json:ro
- ./scripts:/etc/webhook/scripts:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /Volume1/DockerAppsData/git:/Volume1/DockerAppsData/git:ro
- /Volume1/DockerAppsData/mixapp:/Volume1/DockerAppsData/mixapp
# ДОБАВЛЕНО: Монтируем папку с docker-compose файлами
- /Volume1/DockerYAML:/Volume1/DockerYAML
network_mode: host
restart: unless-stopped