File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ version: '3.8'
3
3
services :
4
4
5
5
n8n-db :
6
- image : postgres:11 -alpine
6
+ image : postgres:16 -alpine
7
7
container_name : n8n-db
8
8
restart : unless-stopped
9
9
environment :
10
10
- POSTGRES_USER
11
11
- POSTGRES_PASSWORD
12
+
12
13
- POSTGRES_DB
13
14
- POSTGRES_NON_ROOT_USER
14
15
- POSTGRES_NON_ROOT_PASSWORD
@@ -19,7 +20,9 @@ services:
19
20
test : ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
20
21
interval : 5s
21
22
timeout : 5s
22
- retries : 10
23
+ retries : 10
24
+ # networks:
25
+ # - n8n-internal
23
26
24
27
n8n :
25
28
image : n8nio/n8n
@@ -34,17 +37,28 @@ services:
34
37
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
35
38
ports :
36
39
- 5678:5678
40
+ expose :
41
+ - 5678
37
42
links :
38
43
- n8n-db
39
44
volumes :
40
45
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/n8n/storage:/home/node/.n8n
41
46
depends_on :
42
47
n8n-db :
43
48
condition : service_healthy
49
+ # networks:
50
+ # - proxy
51
+ # - n8n-internal
44
52
# labels:
45
53
# - traefik.enable=true
54
+ # - traefik.docker.network=proxy
46
55
# - traefik.http.routers.n8n.rule=Host(`n8n.example.com`)
47
56
# - traefik.http.services.n8n.loadbalancer.server.port=5678
48
- # - traefik.docker.network=proxy
49
57
# # Part for optional traefik middlewares
50
58
# - traefik.http.routers.n8n.middlewares=local-ipwhitelist@file,basic-auth@file
59
+
60
+ # networks:
61
+ # tier-2:
62
+ # external: true
63
+ # n8n-internal:
64
+ # internal: true
You can’t perform that action at this time.
0 commit comments