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
