File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ version: '3.8'
33services :
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
You can’t perform that action at this time.
0 commit comments