First start n8n seed & activate
Run Tests on Branches / Detect Changes (push) Successful in 14s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Has been skipped
Run Tests on Branches / Parapharmacy API Tests (push) Successful in 1m35s
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
Run Tests on Branches / Detect Changes (push) Successful in 14s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Has been skipped
Run Tests on Branches / Parapharmacy API Tests (push) Successful in 1m35s
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
This commit is contained in:
+13
-1
@@ -101,6 +101,12 @@ services:
|
||||
NODE_ENV: production
|
||||
MONGODB_URI: mongodb://mongodb:27017/parapharmacy
|
||||
CORS_ORIGIN: ${CORS_ORIGIN:-https://farmacias.hacecalor.net}
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:3002/api/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 15s
|
||||
depends_on:
|
||||
- mongodb
|
||||
|
||||
@@ -152,7 +158,7 @@ services:
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
# --- N8N Init: import workflows on first deploy ---
|
||||
# --- N8N Init: import workflows, activate, and seed DB ---
|
||||
n8n-init:
|
||||
image: n8nio/n8n:latest
|
||||
entrypoint: ["/bin/sh", "/home/node/init-import.sh"]
|
||||
@@ -162,13 +168,19 @@ services:
|
||||
DB_POSTGRESDB_DATABASE: farmafinder
|
||||
DB_POSTGRESDB_USER: farmafinder
|
||||
DB_POSTGRESDB_PASSWORD: ${PG_PASSWORD:-change-me-in-production}
|
||||
N8N_OWNER_EMAIL: ${N8N_EMAIL:-admin@farmafinder.com}
|
||||
N8N_OWNER_PASSWORD: ${N8N_PASSWORD:-change-me}
|
||||
volumes:
|
||||
- n8n_data:/home/node/.n8n
|
||||
- ./n8n/workflows:/home/node/workflows
|
||||
- ./n8n/init-import.sh:/home/node/init-import.sh:ro
|
||||
- ./n8n/activate-workflows.js:/home/node/activate-workflows.js:ro
|
||||
- ./n8n/seed.json:/home/node/seed.json:ro
|
||||
depends_on:
|
||||
n8n:
|
||||
condition: service_healthy
|
||||
parapharmacy-api:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
backend_data:
|
||||
|
||||
Reference in New Issue
Block a user