Last active
October 20, 2025 22:40
-
-
Save fortunto2/cc00b66989f9debe84eb847bd9f51b0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.8' | |
| services: | |
| n8n: | |
| image: docker.n8n.io/n8nio/n8n | |
| container_name: n8n | |
| restart: always | |
| # Локальный доступ к UI (опционально) | |
| ports: | |
| - "127.0.0.1:5678:5678" | |
| environment: | |
| # Базовые переменные домена/URL | |
| - N8N_HOST=n8n.xxxx.co | |
| - N8N_PROTOCOL=https | |
| - N8N_PORT=5678 | |
| - DB_SQLITE_POOL_SIZE=100 | |
| - N8N_RUNNERS_ENABLED=true | |
| - WEBHOOK_URL=https://n8n.xxxxxx.co/ | |
| # Рекомендуемо при https-снаружи (Cloudflare), иначе куки могут быть небезопасными | |
| - N8N_SECURE_COOKIE=true | |
| # Таймзона для Cron и расписаний | |
| - GENERIC_TIMEZONE=Europe/Istanbul | |
| # Телеметрию можно отключить, если не нужна | |
| - N8N_DIAGNOSTICS_ENABLED=true | |
| - NODE_ENV=production | |
| - EXECUTIONS_TIMEOUT=3600 # default timeout в секундах (здесь 1 час) | |
| - EXECUTIONS_TIMEOUT_MAX=7200 | |
| volumes: | |
| - ./.n8n:/home/node/.n8n | |
| - ./local-files:/files | |
| networks: | |
| - apps_net | |
| cloudflared-n8n: | |
| image: cloudflare/cloudflared:latest | |
| container_name: cloudflared-n8n | |
| restart: unless-stopped | |
| depends_on: | |
| - n8n | |
| command: | |
| - tunnel | |
| - --no-autoupdate | |
| - run | |
| - --token | |
| - XXXXX | |
| networks: | |
| - apps_net | |
| volumes: | |
| n8n_data: | |
| networks: | |
| apps_net: | |
| external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment