This commit is contained in:
2025-12-22 11:38:37 +01:00
parent 7b5f382503
commit cbc3947df0
2 changed files with 52 additions and 0 deletions

12
Dev/panda_n8n/.env Normal file
View File

@@ -0,0 +1,12 @@
# .env file for n8n and Postgres
# Replace with your desired values
# n8n configuration
N8N_HOST=localhost
WEBHOOK_URL=http://localhost:5678/ # This should be your public URL if n8n is exposed to the internet
N8N_ENCRYPTION_KEY=sosetudhatodmegmitirokide # IMPORTANT: Generate a strong, random key!
# Postgres configuration
POSTGRES_DB=n8n
POSTGRES_USER=n8n
POSTGRES_PASSWORD=pandA6774 # IMPORTANT: Use a strong, random password!

View File

@@ -0,0 +1,40 @@
version: '3.8'
services:
panda-n8n:
image: n8n.n8n
container_name: panda-n8n
restart: unless-stopped
ports:
- "5678:5678"
environment:
- DB_TYPE=postgres
- DB_POSTGRES_HOST=panda-db
- DB_POSTGRES_PORT=5432
- DB_POSTGRES_DATABASE=${POSTGRES_DB}
- DB_POSTGRES_USER=${POSTGRES_USER}
- DB_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- N8N_HOST=${N8N_HOST}
- N8N_PORT=5678
- N8N_PROTOCOL=http
- WEBHOOK_URL=${WEBHOOK_URL}
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
volumes:
- n8n_data:/home/node/.n8n
depends_on:
- panda-db
panda-db:
image: postgres:13
container_name: panda-db
restart: unless-stopped
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- db_data:/var/lib/postgresql/data
volumes:
n8n_data:
db_data: