Files
mwitnessing/_deploy/webhook-docker-compose.yml
2025-04-10 03:02:30 +03:00

39 lines
1.0 KiB
YAML

version: "3.8"
services:
webhook-receiver:
container_name: mwitnessing-webhook
build:
context: ./webhook
dockerfile: Dockerfile
restart: always
ports:
- "9000:9000"
environment:
- WEBHOOK_PORT=9000
- WEBHOOK_SECRET=change-this-secret-in-production
- DEPLOY_SCRIPT=/app/webhook-deploy.sh
- LOG_FILE=/app/logs/webhook.log
- ALLOWED_BRANCHES=main,develop
- ALLOWED_REPOSITORIES=mwhitnessing
# Git credentials for deployment
- GIT_USERNAME=deploy
- GIT_PASSWORD=your-git-password
# Docker configuration
- DOCKER_COMPOSE_FILE=_deploy/standard-docker-compose.yml
volumes:
- ./webhook-receiver.js:/app/webhook-receiver.js
- ./webhook-deploy.sh:/app/webhook-deploy.sh
- webhook_logs:/app/logs
# Mount Docker socket to allow container restart
- /var/run/docker.sock:/var/run/docker.sock
networks:
- app-network
volumes:
webhook_logs:
driver: local
networks:
app-network:
external: true