Compare commits

...

2 Commits

Author SHA1 Message Date
derekc 12f661980e added resource limits and healthchecks 2026-05-16 00:59:53 -07:00
derekc 58c2c96c54 changed default timezone 2026-05-16 00:59:38 -07:00
2 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ N8N_APP_VERSION=latest
N8N_DB_VERSION=16
# Timezone for the n8n container (IANA format)
N8N_TZ=America/Chicago
N8N_TZ=America/Los_Angeles
# Password for the PostgreSQL n8n user (used by both app and db services)
N8N_DB_PASSWORD=changeme
+22 -1
View File
@@ -17,7 +17,18 @@ services:
ports:
- ${N8N_PORT:-5678}:5678
depends_on:
- db
db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:5678/healthz || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
deploy:
resources:
limits:
memory: 512m
restart: unless-stopped
db:
@@ -29,6 +40,16 @@ services:
- POSTGRES_PASSWORD=${N8N_DB_PASSWORD:-changeme}
volumes:
- n8n-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U n8n -d n8n"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
deploy:
resources:
limits:
memory: 512m
restart: unless-stopped
volumes: