deployment methods - new and docs

This commit is contained in:
Dobromir Popov
2025-04-10 03:02:30 +03:00
parent fe96003eee
commit 0d3914f3c6
10 changed files with 1010 additions and 0 deletions

View File

@ -0,0 +1,39 @@
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