Skip to content

Commit 9606ac3

Browse files
authored
chore: adjust n8n
1 parent 78edefc commit 9606ac3

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

examples/n8n/docker-compose.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ version: '3.8'
33
services:
44

55
n8n-db:
6-
image: postgres:11-alpine
6+
image: postgres:16-alpine
77
container_name: n8n-db
88
restart: unless-stopped
99
environment:
1010
- POSTGRES_USER
1111
- POSTGRES_PASSWORD
12+
1213
- POSTGRES_DB
1314
- POSTGRES_NON_ROOT_USER
1415
- POSTGRES_NON_ROOT_PASSWORD
@@ -19,7 +20,9 @@ services:
1920
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
2021
interval: 5s
2122
timeout: 5s
22-
retries: 10
23+
retries: 10
24+
#networks:
25+
# - n8n-internal
2326

2427
n8n:
2528
image: n8nio/n8n
@@ -34,17 +37,28 @@ services:
3437
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
3538
ports:
3639
- 5678:5678
40+
expose:
41+
- 5678
3742
links:
3843
- n8n-db
3944
volumes:
4045
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/n8n/storage:/home/node/.n8n
4146
depends_on:
4247
n8n-db:
4348
condition: service_healthy
49+
#networks:
50+
# - proxy
51+
# - n8n-internal
4452
#labels:
4553
# - traefik.enable=true
54+
# - traefik.docker.network=proxy
4655
# - traefik.http.routers.n8n.rule=Host(`n8n.example.com`)
4756
# - traefik.http.services.n8n.loadbalancer.server.port=5678
48-
# - traefik.docker.network=proxy
4957
# # Part for optional traefik middlewares
5058
# - 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

0 commit comments

Comments
 (0)