feat: migrate import functionality to microservice-importer for quick-import, receipt parsing, and markdown parsing
This commit is contained in:
+24
@@ -48,11 +48,14 @@ services:
|
||||
ADMIN_PADMIN_PASSWORD: "${ADMIN_PADMIN_PASSWORD}"
|
||||
SEED_USER1_PASSWORD: "${SEED_USER1_PASSWORD}"
|
||||
SEED_USER2_PASSWORD: "${SEED_USER2_PASSWORD}"
|
||||
IMPORTER_SERVICE_URL: "http://importer-api:3001"
|
||||
volumes:
|
||||
- recipe_images:/app/recipe-images
|
||||
depends_on:
|
||||
recipe-db:
|
||||
condition: service_healthy
|
||||
importer-api:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/api/health >/dev/null 2>&1 || exit 1"]
|
||||
interval: 20s
|
||||
@@ -63,6 +66,27 @@ services:
|
||||
- proxy
|
||||
- recipe-internal
|
||||
|
||||
importer-api:
|
||||
build:
|
||||
context: ../microservice-importer
|
||||
dockerfile: backend/Dockerfile
|
||||
image: recipe-importer-api:local
|
||||
pull_policy: never
|
||||
container_name: importer-api
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
NODE_ENV: "production"
|
||||
PORT: "3001"
|
||||
MISTRAL_API_KEY: "${MISTRAL_API_KEY:-}"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3001/api/health >/dev/null 2>&1 || exit 1"]
|
||||
interval: 20s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
networks:
|
||||
- recipe-internal
|
||||
|
||||
recipe-db:
|
||||
image: mariadb:11
|
||||
container_name: recipe-db
|
||||
|
||||
Reference in New Issue
Block a user