mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-23 20:11:12 +00:00
chore: adjust n8n
This commit is contained in:
parent
78edefc9c9
commit
9606ac382a
|
@ -3,12 +3,13 @@ version: '3.8'
|
||||||
services:
|
services:
|
||||||
|
|
||||||
n8n-db:
|
n8n-db:
|
||||||
image: postgres:11-alpine
|
image: postgres:16-alpine
|
||||||
container_name: n8n-db
|
container_name: n8n-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER
|
- POSTGRES_USER
|
||||||
- POSTGRES_PASSWORD
|
- POSTGRES_PASSWORD
|
||||||
|
|
||||||
- POSTGRES_DB
|
- POSTGRES_DB
|
||||||
- POSTGRES_NON_ROOT_USER
|
- POSTGRES_NON_ROOT_USER
|
||||||
- POSTGRES_NON_ROOT_PASSWORD
|
- POSTGRES_NON_ROOT_PASSWORD
|
||||||
|
@ -19,7 +20,9 @@ services:
|
||||||
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
#networks:
|
||||||
|
# - n8n-internal
|
||||||
|
|
||||||
n8n:
|
n8n:
|
||||||
image: n8nio/n8n
|
image: n8nio/n8n
|
||||||
|
@ -34,6 +37,8 @@ services:
|
||||||
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
|
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
|
||||||
ports:
|
ports:
|
||||||
- 5678:5678
|
- 5678:5678
|
||||||
|
expose:
|
||||||
|
- 5678
|
||||||
links:
|
links:
|
||||||
- n8n-db
|
- n8n-db
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -41,10 +46,19 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
n8n-db:
|
n8n-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
#networks:
|
||||||
|
# - proxy
|
||||||
|
# - n8n-internal
|
||||||
#labels:
|
#labels:
|
||||||
# - traefik.enable=true
|
# - traefik.enable=true
|
||||||
|
# - traefik.docker.network=proxy
|
||||||
# - traefik.http.routers.n8n.rule=Host(`n8n.example.com`)
|
# - traefik.http.routers.n8n.rule=Host(`n8n.example.com`)
|
||||||
# - traefik.http.services.n8n.loadbalancer.server.port=5678
|
# - traefik.http.services.n8n.loadbalancer.server.port=5678
|
||||||
# - traefik.docker.network=proxy
|
|
||||||
# # Part for optional traefik middlewares
|
# # Part for optional traefik middlewares
|
||||||
# - traefik.http.routers.n8n.middlewares=local-ipwhitelist@file,basic-auth@file
|
# - traefik.http.routers.n8n.middlewares=local-ipwhitelist@file,basic-auth@file
|
||||||
|
|
||||||
|
#networks:
|
||||||
|
# tier-2:
|
||||||
|
# external: true
|
||||||
|
# n8n-internal:
|
||||||
|
# internal: true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user