This commit is contained in:
2025-12-27 05:22:55 +08:00
parent 7e2d2622dd
commit 4063c20e69

View File

@@ -2,7 +2,7 @@ version: "3.7"
services:
main:
image: docker.n8n.io/n8nio/n8n
image: ${N8N_IMAGE}
command: start
restart: unless-stopped
user: ${N8N_UID}
@@ -11,7 +11,7 @@ services:
environment:
# Database
- DB_TYPE=postgresdb
- DB_POSTGRESDB_USER=${N8N_POSTGRESDB_DATABASE}
- DB_POSTGRESDB_DATABASE=${N8N_POSTGRESDB_DATABASE}
- DB_POSTGRESDB_HOST=db
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=${N8N_POSTGRESDB_USER}
@@ -53,7 +53,7 @@ services:
- homepage.description=n8n is a workflow automation platform that gives technical teams the flexibility of code with the speed of no-code.
worker:
image: docker.n8n.io/n8nio/n8n
image: ${N8N_IMAGE}
command: worker --concurrency=10
restart: unless-stopped
user: ${N8N_UID}
@@ -61,7 +61,7 @@ services:
environment:
# Database
- DB_TYPE=postgresdb
- DB_POSTGRESDB_USER=${N8N_POSTGRESDB_DATABASE}
- DB_POSTGRESDB_DATABASE=${N8N_POSTGRESDB_DATABASE}
- DB_POSTGRESDB_HOST=db
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=${N8N_POSTGRESDB_USER}
@@ -96,7 +96,7 @@ services:
mode: global
webhook:
image: docker.n8n.io/n8nio/n8n
image: ${N8N_IMAGE}
command: webhook
restart: unless-stopped
user: ${N8N_UID}
@@ -105,7 +105,7 @@ services:
environment:
# Database
- DB_TYPE=postgresdb
- DB_POSTGRESDB_USER=${N8N_POSTGRESDB_DATABASE}
- DB_POSTGRESDB_DATABASE=${N8N_POSTGRESDB_DATABASE}
- DB_POSTGRESDB_HOST=db
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=${N8N_POSTGRESDB_USER}