-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·52 lines (48 loc) · 1.36 KB
/
docker-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
# Installation: https://hub.docker.com/r/n8nio/n8n
services:
n8n:
image: n8nio/n8n:1.59.4
container_name: n8n
environment:
- DB_TYPE=${N8N_DB_TYPE}
- DB_POSTGRESDB_HOST=${N8N_DB_POSTGRESDB_HOST}
- DB_POSTGRESDB_PORT=${N8N_DB_POSTGRESDB_PORT}
- DB_POSTGRESDB_DATABASE=${N8N_DB_POSTGRESDB_DATABASE}
- DB_POSTGRESDB_USER=${N8N_DB_POSTGRESDB_USER}
- DB_POSTGRESDB_PASSWORD=${N8N_DB_POSTGRESDB_PASSWORD}
- GENERIC_TIMEZONE=${N8N_GENERIC_TIMEZONE}
ports:
- 5678:5678
volumes:
- /opt/appdata/n8n:/home/node/.n8n
restart: unless-stopped
depends_on:
n8n-postgres:
condition: service_healthy
networks:
- proxy
n8n-postgres:
image: postgres:16
container_name: n8n-postgres
environment:
- POSTGRES_USER=${N8N_DB_POSTGRESDB_USER}
- POSTGRES_PASSWORD=${N8N_DB_POSTGRESDB_PASSWORD}
- POSTGRES_DB=${N8N_DB_POSTGRESDB_DATABASE}
healthcheck:
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${N8N_DB_POSTGRESDB_USER} -d ${N8N_DB_POSTGRESDB_DATABASE}']
interval: 5s
timeout: 5s
retries: 10
volumes:
- n8n-postgresql-volume:/var/lib/postgresql/data
ports:
- '5432:5432'
restart: unless-stopped
networks:
- proxy
volumes:
n8n-postgresql-volume: {}
networks:
proxy:
driver: bridge
external: true