-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 887 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (34 loc) · 887 Bytes
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
services:
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=byCatmaitachi
- POSTGRES_PASSWORD=777
- POSTGRES_DB=NumbersDB
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres-init:/docker-entrypoint-initdb.d
n8n:
image: n8nio/n8n:latest
restart: always
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=NumbersDB
- DB_POSTGRESDB_USER=byCatmaitachi
- DB_POSTGRESDB_PASSWORD=777
- NODE_FUNCTION_ALLOW_EXTERNAL=fs,path
- N8N_CUSTOM_EXTENSIONS_DIR=/home/node/.n8n/custom/
ports:
- "5678:5678"
volumes:
- ./n8n-data:/home/node/.n8n
- ./:/home/node/.n8n/custom
depends_on:
- postgres
volumes:
postgres_data: