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
+22
View File
@@ -0,0 +1,22 @@
# n8n Docker Compose Environment Variables
# n8n application image version (e.g. 1.47.1, or "latest")
N8N_APP_VERSION=latest
# PostgreSQL image version
N8N_DB_VERSION=16
# Timezone for the n8n container (IANA format)
N8N_TZ=America/Chicago
# Password for the PostgreSQL n8n user (used by both app and db services)
N8N_DB_PASSWORD=changeme
# Encryption key used to encrypt saved credentials — generate with: openssl rand -hex 32
N8N_ENCRYPTION_KEY=changeme_random_string
# Public-facing URL n8n uses to construct webhook URLs (include trailing path if needed)
N8N_URL=https://n8n.yourdomain.com
# Host port to expose the n8n web UI on
N8N_PORT=5678
+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: