-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.03 KB
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
name: n8n
services:
n8n_server:
build:
context: .
dockerfile: n8n.Dockerfile
depends_on:
- postgre
volumes:
- n8n_data:/home/node/.n8n
environment:
GENERIC_TIMEZONE: 'America/Sao_Paulo'
TZ: 'America/Sao_Paulo'
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: true
N8N_RUNNERS_ENABLED: true
DB_TYPE: postgresdb
DB_POSTGRESDB_DATABASE: n8n
DB_POSTGRESDB_HOST: postgre
DB_POSTGRESDB_PORT: 5432
DB_POSTGRESDB_USER: postgres
DB_POSTGRESDB_SCHEMA: public
DB_POSTGRESDB_PASSWORD: root
ports:
- '5678:5678'
networks:
- default
restart: always
postgre:
build:
context: .
dockerfile: postgresql.Dockerfile
volumes:
- postgre_data:/var/lib/postgresql
environment:
POSTGRES_DB: n8n
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
ports:
- '5432:5432'
networks:
- default
restart: always
networks:
default:
name: n8n_network
volumes:
n8n_data:
postgre_data: