neu n8n
This commit is contained in:
12
Dev/panda_n8n/.env
Normal file
12
Dev/panda_n8n/.env
Normal 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!
|
||||
40
Dev/panda_n8n/docker-compose.yml
Normal file
40
Dev/panda_n8n/docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user