fixed problems

deploy_exxeta
s8613 2025-06-29 15:33:52 +02:00
parent d5234ac2e7
commit 06a517af53
2 changed files with 33 additions and 23 deletions

View File

@ -12,8 +12,9 @@ services:
- "traefik.http.middlewares.ff-frontend-stripprefix.stripprefix.prefixes=/ff" - "traefik.http.middlewares.ff-frontend-stripprefix.stripprefix.prefixes=/ff"
- "traefik.http.routers.ff-frontend.middlewares=ff-frontend-stripprefix" - "traefik.http.routers.ff-frontend.middlewares=ff-frontend-stripprefix"
networks: networks:
- traefik_default - proxy
- app-network expose:
- "80"
db: db:
image: postgres:17-alpine image: postgres:17-alpine
@ -25,7 +26,7 @@ services:
timeout: 5s timeout: 5s
retries: 5 retries: 5
networks: networks:
- app-network - proxy
coordinator: coordinator:
build: build:
@ -34,12 +35,14 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
- OCR_SERVICE_URL=http://ocr:5000 - OCR_SERVICE_URL=http://ocr:5051
- SPACY_SERVICE_URL=http://spacy:5052/extract
- EXXETA_SERVICE_URL=http://exxeta:5053/extract
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: wget --spider --no-verbose http://127.0.0.1:5000/health || exit 1 test: wget --spider --no-verbose http://127.0.0.1:5050/health || exit 1
interval: 20s interval: 20s
timeout: 10s timeout: 10s
retries: 10 retries: 10
@ -47,12 +50,13 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.ff-api.rule=PathPrefix(`/ff-api/`)" - "traefik.http.routers.ff-api.rule=PathPrefix(`/ff-api/`)"
- "traefik.http.routers.ff-api.entrypoints=web" - "traefik.http.routers.ff-api.entrypoints=web"
- "traefik.http.services.ff-api.loadbalancer.server.port=5000" - "traefik.http.services.ff-api.loadbalancer.server.port=5050"
- "traefik.http.middlewares.ff-api-stripprefix.stripprefix.prefixes=/ff-api" - "traefik.http.middlewares.ff-api-stripprefix.stripprefix.prefixes=/ff-api"
- "traefik.http.routers.ff-api.middlewares=ff-api-stripprefix" - "traefik.http.routers.ff-api.middlewares=ff-api-stripprefix"
networks: networks:
- traefik_default - proxy
- app-network expose:
- "5050"
ocr: ocr:
build: build:
@ -61,21 +65,25 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
- EXXETA_SERVICE_URL=http://exxeta:5000/extract - EXXETA_SERVICE_URL=http://exxeta:5053/extract
- SPACY_SERVICE_URL=http://spacy:5052/extract - SPACY_SERVICE_URL=http://spacy:5052/extract
- COORDINATOR_URL=http://coordinator:5000 - COORDINATOR_URL=http://coordinator:5050
networks: networks:
- app-network - proxy
expose:
- "5051"
spacy: spacy:
build: build:
context: backend/spacy-service context: backend/spacy-service
environment: environment:
- VALIDATE_SERVICE_URL=http://validate:5000/validate - VALIDATE_SERVICE_URL=http://validate:5054/validate
volumes: volumes:
- ./backend/spacy-service/spacy_training:/app/spacy_training - ./backend/spacy-service/spacy_training:/app/spacy_training
networks: networks:
- app-network - proxy
expose:
- "5052"
exxeta: exxeta:
build: build:
@ -84,10 +92,12 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
- VALIDATE_SERVICE_URL=http://validate:5000/validate - VALIDATE_SERVICE_URL=http://validate:5054/validate
- COORDINATOR_URL=http://coordinator:5000 - COORDINATOR_URL=http://coordinator:5050
networks: networks:
- app-network - proxy
expose:
- "5053"
validate: validate:
build: build:
@ -96,12 +106,12 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
- COORDINATOR_URL=http://coordinator:5000 - COORDINATOR_URL=http://coordinator:5050
networks: networks:
- app-network - proxy
expose:
- "5054"
networks: networks:
traefik_default: proxy:
external: true external: true
app-network:
driver: bridge

View File

@ -4,7 +4,7 @@ WORKDIR /usr/src/app
# install dependencies into temp directory # install dependencies into temp directory
# this will cache them and speed up future builds # this will cache them and speed up future builds
COPY package.json bun.lockb ./ COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile RUN bun install
COPY . . COPY . .