feat: add N8N workflows and auto-setup configuration
- Add parapharmacy-scraper workflow (scheduled every 3 days) - Add parapharmacy-manual-scraper workflow (webhook triggered) - Configure N8N to auto-create owner account (skips /setup) - Add N8N environment variables to docker-compose.yml - Add README with setup and usage instructions
This commit is contained in:
@@ -118,19 +118,29 @@ services:
|
||||
ports:
|
||||
- "5678:5678"
|
||||
environment:
|
||||
# Owner account (skips /setup)
|
||||
N8N_USER_MANAGEMENT_DISABLED: "false"
|
||||
N8N_OWNER_EMAIL: ${N8N_EMAIL:-admin@farmafinder.com}
|
||||
N8N_OWNER_PASSWORD: ${N8N_PASSWORD:-change-me}
|
||||
# Auth
|
||||
N8N_BASIC_AUTH_ACTIVE: "true"
|
||||
N8N_BASIC_AUTH_USER: ${N8N_USER:-admin}
|
||||
N8N_BASIC_AUTH_PASSWORD: ${N8N_PASSWORD:-change-me}
|
||||
# Database
|
||||
DB_TYPE: postgresdb
|
||||
DB_POSTGRESDB_HOST: postgres
|
||||
DB_POSTGRESDB_DATABASE: farmafinder
|
||||
DB_POSTGRESDB_USER: farmafinder
|
||||
DB_POSTGRESDB_PASSWORD: ${PG_PASSWORD:-change-me-in-production}
|
||||
# Network
|
||||
N8N_HOST: localhost
|
||||
N8N_PORT: 5678
|
||||
N8N_PROTOCOL: http
|
||||
# Webhook URL for external calls
|
||||
WEBHOOK_URL: http://localhost:5678/
|
||||
volumes:
|
||||
- n8n_data:/home/node/.n8n
|
||||
- ./n8n/workflows:/home/node/workflows
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
|
||||
Reference in New Issue
Block a user