Files

64 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2026-01-09 17:12:49 +01:00
services:
2026-01-09 21:28:21 +01:00
postgres:
2026-01-09 20:39:59 +01:00
image: pgvector/pgvector:pg16
2026-01-09 21:28:21 +01:00
container_name: customer-postgres
2026-01-09 17:12:49 +01:00
restart: unless-stopped
environment:
2026-01-09 21:28:21 +01:00
POSTGRES_DB: ${PG_DB}
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASSWORD}
2026-01-09 17:12:49 +01:00
volumes:
2026-01-09 21:28:21 +01:00
- ./volumes/postgres/data:/var/lib/postgresql/data
- ./sql:/docker-entrypoint-initdb.d:ro
2026-01-09 20:39:59 +01:00
healthcheck:
2026-01-09 21:28:21 +01:00
test: ["CMD-SHELL", "pg_isready -U ${PG_USER} -d ${PG_DB} || exit 1"]
2026-01-09 20:39:59 +01:00
interval: 10s
timeout: 5s
2026-01-09 21:28:21 +01:00
retries: 20
networks:
- customer-net
2026-01-09 17:12:49 +01:00
n8n:
2026-01-09 20:39:59 +01:00
image: n8nio/n8n:latest
2026-01-09 17:12:49 +01:00
container_name: n8n
restart: unless-stopped
depends_on:
2026-01-09 21:28:21 +01:00
postgres:
2026-01-09 20:39:59 +01:00
condition: service_healthy
2026-01-09 17:12:49 +01:00
ports:
2026-01-09 21:28:21 +01:00
- "${N8N_PORT}:5678"
2026-01-09 17:12:49 +01:00
environment:
2026-01-09 21:28:21 +01:00
# --- Web / Cookies / URL ---
2026-01-09 20:39:59 +01:00
N8N_PORT: 5678
2026-01-09 21:28:21 +01:00
N8N_PROTOCOL: ${N8N_PROTOCOL}
N8N_HOST: ${N8N_HOST}
2026-01-09 18:53:26 +01:00
N8N_EDITOR_BASE_URL: ${N8N_EDITOR_BASE_URL}
WEBHOOK_URL: ${WEBHOOK_URL}
2026-01-09 17:12:49 +01:00
2026-01-09 21:28:21 +01:00
# Ohne TLS/Reverse Proxy: sonst Secure-Cookie Warning / Login-Probleme
N8N_SECURE_COOKIE: ${N8N_SECURE_COOKIE}
2026-01-09 20:39:59 +01:00
2026-01-09 21:28:21 +01:00
# --- DB (Postgres) ---
2026-01-09 20:39:59 +01:00
DB_TYPE: postgresdb
2026-01-09 21:28:21 +01:00
DB_POSTGRESDB_HOST: postgres
2026-01-09 20:39:59 +01:00
DB_POSTGRESDB_PORT: 5432
2026-01-09 21:28:21 +01:00
DB_POSTGRESDB_DATABASE: ${PG_DB}
DB_POSTGRESDB_USER: ${PG_USER}
DB_POSTGRESDB_PASSWORD: ${PG_PASSWORD}
# --- Basics ---
GENERIC_TIMEZONE: Europe/Berlin
TZ: Europe/Berlin
2026-01-09 20:39:59 +01:00
2026-01-09 21:28:21 +01:00
# optional (später hart machen)
N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY}
2026-01-09 17:12:49 +01:00
volumes:
2026-01-09 21:28:21 +01:00
- ./volumes/n8n-data:/home/node/.n8n
2026-01-09 20:39:59 +01:00
networks:
2026-01-09 21:28:21 +01:00
- customer-net
2026-01-09 18:53:26 +01:00
networks:
2026-01-09 21:28:21 +01:00
customer-net:
2026-01-09 18:53:26 +01:00
driver: bridge