Files
n8n-workflows/docker-compose.prod.yml
Sahiix@1 3c0a92c460 ssd (#10)
* ok

ok

* Refactor README for better structure and readability

Updated README to improve formatting and clarity.

* Initial plan

* Initial plan

* Initial plan

* Initial plan

* Comprehensive deployment infrastructure implementation

Co-authored-by: sahiixx <221578902+sahiixx@users.noreply.github.com>

* Add comprehensive deployment infrastructure - Docker, K8s, CI/CD, scripts

Co-authored-by: sahiixx <221578902+sahiixx@users.noreply.github.com>

* Add files via upload

* Complete deployment implementation - tested and working production deployment

Co-authored-by: sahiixx <221578902+sahiixx@users.noreply.github.com>

* Revert "Implement comprehensive deployment infrastructure for n8n-workflows documentation system"

* Update docker-compose.prod.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update scripts/health-check.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: dopeuni444 <sahiixofficial@wgmail.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-29 09:31:37 +04:00

66 lines
2.1 KiB
YAML

services:
workflows-docs:
restart: always
environment:
- ENVIRONMENT=production
- LOG_LEVEL=warning
- ENABLE_METRICS=true
- MAX_WORKERS=4
volumes:
- workflows-db:/app/database
- workflows-logs:/app/logs
- ./workflows:/app/workflows:ro # Read-only workflow files
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
reservations:
memory: 256M
cpus: '0.25'
labels:
- "traefik.enable=true"
- "traefik.http.routers.workflows-docs.rule=Host(`workflows.yourdomain.com`)"
- "traefik.http.routers.workflows-docs.tls=true"
- "traefik.http.routers.workflows-docs.tls.certresolver=myresolver"
- "traefik.http.services.workflows-docs.loadbalancer.server.port=8000"
- "traefik.http.middlewares.workflows-docs-auth.basicauth.users=admin:$$2y$$10$$..." # Generate with htpasswd
# Production reverse proxy
reverse-proxy:
restart: always
- "traefik.http.middlewares.workflows-docs-auth.basicauth.users=admin:$$2y$$12$$eImiTXuWVxfM37uY4JANjQ=="
# Example hash for password 'examplepassword'. Generate your own with: htpasswd -nbB <user> <password>
# See: https://doc.traefik.io/traefik/middlewares/http/basicauth/
volumes:
- ./traefik/config:/etc/traefik/dynamic:ro
- ./ssl:/ssl:ro
environment:
- TRAEFIK_LOG_LEVEL=INFO
deploy:
resources:
limits:
memory: 256M
cpus: '0.25'
# Optional: Monitoring stack
monitoring:
image: prom/prometheus:latest
container_name: prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
networks:
- workflows-network
profiles:
- monitoring
volumes:
prometheus-data: