N8N first run script
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
Run Tests on Branches / Parapharmacy API Tests (push) Has been skipped
Run Tests on Branches / Detect Changes (push) Successful in 13s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Has been skipped
Run Tests on Branches / PIP Platform Tests (push) Has been skipped

This commit is contained in:
Antoni Nuñez Romeu
2026-07-17 11:28:14 +02:00
parent 418694cb08
commit cc77783b7d
3 changed files with 62 additions and 7 deletions
+24
View File
@@ -140,12 +140,36 @@ services:
N8N_PROTOCOL: http
# Webhook URL for external calls
WEBHOOK_URL: http://localhost:5678/
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5678/healthz"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
- n8n_data:/home/node/.n8n
- ./n8n/workflows:/home/node/workflows
depends_on:
- postgres
# --- N8N Init: import workflows on first deploy ---
n8n-init:
image: n8nio/n8n:latest
entrypoint: ["/bin/sh", "/home/node/init-import.sh"]
environment:
DB_TYPE: postgresdb
DB_POSTGRESDB_HOST: postgres
DB_POSTGRESDB_DATABASE: farmafinder
DB_POSTGRESDB_USER: farmafinder
DB_POSTGRESDB_PASSWORD: ${PG_PASSWORD:-change-me-in-production}
volumes:
- n8n_data:/home/node/.n8n
- ./n8n/workflows:/home/node/workflows
- ./n8n/init-import.sh:/home/node/init-import.sh:ro
depends_on:
n8n:
condition: service_healthy
volumes:
backend_data:
postgres_data: