created n8n

This commit is contained in:
2026-05-16 00:28:26 -07:00
parent 9115f4a859
commit 4d8d3be954
2 changed files with 58 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
services:
app:
image: n8nio/n8n:${N8N_APP_VERSION:-latest}
container_name: n8n-app
environment:
- TZ=${N8N_TZ:-America/Los_Angeles}
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=n8n-db
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_USER=n8n
- DB_POSTGRESDB_PASSWORD=${N8N_DB_PASSWORD:-changeme}
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY:-changeme_random_string}
- WEBHOOK_URL=${N8N_URL:-https://n8n.yourdomain.com}
volumes:
- n8n-app:/home/node/.n8n
ports:
- ${N8N_PORT:-5678}:5678
depends_on:
- db
restart: unless-stopped
db:
image: postgres:${N8N_DB_VERSION:-16}
container_name: n8n-db
environment:
- POSTGRES_DB=n8n
- POSTGRES_USER=n8n
- POSTGRES_PASSWORD=${N8N_DB_PASSWORD:-changeme}
volumes:
- n8n-db:/var/lib/postgresql/data
restart: unless-stopped
volumes:
n8n-app:
n8n-db: