feat(deployment): add production Docker deployment with auto-restart and on-boot startup
Add comprehensive production deployment infrastructure with Docker auto-restart and systemd on-boot startup capabilities. Changes: - Add deploy-production-docker.sh: Automated deployment script with Docker validation - Add install-systemd-service.sh: Systemd service installer for auto-start on boot - Add scripts/mev-bot.service: Systemd service definition for MEV bot - Update docker-compose.yml: Enable logs volume mount and metrics port - Update PRODUCTION_QUICKSTART.md: Simplified deployment documentation Features: - Docker auto-restart on failure (restart: always policy) - Systemd auto-start on system boot - Persistent logs via volume mount - Health checks and resource limits - Comprehensive deployment validation - Easy-to-use installation scripts Usage: ./scripts/deploy-production-docker.sh # Deploy with Docker sudo ./scripts/install-systemd-service.sh # Enable auto-start on boot 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -11,8 +11,8 @@ services:
|
||||
volumes:
|
||||
# Mount only the config file for production
|
||||
- ./config/config.production.yaml:/app/config/config.yaml:ro
|
||||
# Optional: mount a directory for logs if needed
|
||||
# - ./logs:/app/logs
|
||||
# Mount logs directory for persistent logs
|
||||
- ./logs:/app/logs
|
||||
environment:
|
||||
- LOG_LEVEL=${LOG_LEVEL:-info}
|
||||
- ARBITRUM_RPC_ENDPOINT=${ARBITRUM_RPC_ENDPOINT:-https://arbitrum-rpc.publicnode.com}
|
||||
@@ -21,6 +21,7 @@ services:
|
||||
- .env
|
||||
ports:
|
||||
- "${PORT:-8080}:8080"
|
||||
- "${METRICS_PORT:-9090}:9090"
|
||||
command: ["start"]
|
||||
# Health check to ensure the bot is running properly
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user