-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew-compose.yml
120 lines (114 loc) · 2.89 KB
/
new-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
services:
postgres:
image: postgres:15
restart: always
environment:
POSTGRES_USER: n8n
POSTGRES_PASSWORD: n8n
POSTGRES_DB: n8n
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis:6
restart: always
volumes:
- redis-data:/data
n8n:
image: n8nio/n8n:latest # Specify the version here
restart: always
command: n8n start
ports:
- "5678:5678"
environment:
DB_TYPE: postgresdb
DB_POSTGRESDB_HOST: postgres
DB_POSTGRESDB_PORT: 5432
N8N_METRICS: 'true'
DB_POSTGRESDB_DATABASE: n8n
DB_POSTGRESDB_USER: n8n
DB_POSTGRESDB_PASSWORD: n8n
EXECUTIONS_PROCESS: "main"
EXECUTIONS_MODE: queue
QUEUE_BULL_REDIS_HOST: redis
N8N_BASIC_AUTH_ACTIVE: 'true'
N8N_BASIC_AUTH_USER: admin
N8N_BASIC_AUTH_PASSWORD: password
GENERIC_TIMEZONE: 'UTC'
#WEBHOOK_TUNNEL_URL: 'http://172.233.152.4:5678/'
WEBHOOK_TUNNEL_URL: 'http://manage.magicallygenius.ai/'
DEBUG: "*"
depends_on:
- postgres
- redis
volumes:
- n8n-data:/home/node/.n8n
n8n-worker-1:
image: n8nio/n8n:latest # Specify the version here
restart: always
command: n8n worker
environment:
DB_TYPE: postgresdb
DB_POSTGRESDB_HOST: postgres
DB_POSTGRESDB_PORT: 5432
DB_POSTGRESDB_DATABASE: n8n
N8N_METRICS: 'true'
DB_POSTGRESDB_USER: n8n
DB_POSTGRESDB_PASSWORD: n8n
EXECUTIONS_PROCESS: "own"
EXECUTIONS_MODE: queue
QUEUE_BULL_REDIS_HOST: redis
DEBUG: "*"
depends_on:
- redis
- postgres
volumes:
- n8n-worker-data-1:/home/node/.n8n
n8n-worker-2:
image: n8nio/n8n:latest # Specify the version here
restart: always
command: n8n worker
environment:
DB_TYPE: postgresdb
DB_POSTGRESDB_HOST: postgres
DB_POSTGRESDB_PORT: 5432
DB_POSTGRESDB_DATABASE: n8n
N8N_METRICS: 'true'
DB_POSTGRESDB_USER: n8n
DB_POSTGRESDB_PASSWORD: n8n
EXECUTIONS_PROCESS: "own"
EXECUTIONS_MODE: queue
QUEUE_BULL_REDIS_HOST: redis
DEBUG: "*"
depends_on:
- redis
- postgres
volumes:
- n8n-worker-data-2:/home/node/.n8n
n8n-worker-3:
image: n8nio/n8n:latest # Specify the version here
restart: always
command: n8n worker
environment:
DB_TYPE: postgresdb
DB_POSTGRESDB_HOST: postgres
DB_POSTGRESDB_PORT: 5432
N8N_METRICS: 'true'
DB_POSTGRESDB_DATABASE: n8n
DB_POSTGRESDB_USER: n8n
DB_POSTGRESDB_PASSWORD: n8n
EXECUTIONS_PROCESS: "own"
EXECUTIONS_MODE: queue
QUEUE_BULL_REDIS_HOST: redis
DEBUG: "*"
depends_on:
- redis
- postgres
volumes:
- n8n-worker-data-3:/home/node/.n8n
volumes:
postgres-data:
redis-data:
n8n-data:
n8n-worker-data-1:
n8n-worker-data-2:
n8n-worker-data-3: