Update compose.yaml

This commit is contained in:
2026-07-21 09:02:18 +02:00
parent c0ec9684ec
commit 3b4ab67927
+22 -32
View File
@@ -42,45 +42,35 @@ services:
timeout: 5s
retries: 10
n8n:
image: docker.n8n.io/n8nio/n8n:${N8N_VERSION}
image: n8nio/n8n:latest
container_name: n8n
restart: always
user: "${n8n_user}"
networks:
- bragi-local
# ports:
# - "${N8N_Port}:80"
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
- N8N_RUNNERS_MODE=external
- N8N_RUNNERS_AUTH_TOKEN=${RUNNERS_AUTH_TOKEN}
- N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0
ports:
- 5678:5678
links:
- postgres
- N8N_COMMUNITY_PACKAGES_ENABLED=true
- DB_SQLITE_POOL_SIZE=4
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_RUNNERS_ENABLED=true
- NODE_FUNCTION_ALLOW_EXTERNAL=ws
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- N8N_LISTEN_ADDRESS=0.0.0.0
- N8N_PROXY_HOPS=1
- N8N_PROTOCOL=https
- N8N_BASIC_AUTH_USER=${N8N_AUser}
- N8N_BASIC_AUTH_PASSWORD=${N8N_APass}
- N8N_HOST=${N8N_HOST}
- WEBHOOK_URL=${N8N_Webhook}
- N8N_PORT=80
#- NODE_TLS_REJECT_UNAUTHORIZED=0
volumes:
- n8n_storage:/home/node/.n8n
depends_on:
postgres:
condition: service_healthy
- /opt/00_infra/n8n:/home/node
n8n-runner:
image: n8nio/runners:${N8N_VERSION}
networks:
- bragi-local
restart: always
environment:
- N8N_RUNNERS_AUTH_TOKEN=${RUNNERS_AUTH_TOKEN}
- N8N_RUNNERS_TASK_BROKER_URI=http://n8n:5679
depends_on:
- n8n
volumes:
db_storage:
n8n_storage:
networks: