fixed problems

deploy_exxeta
s8613 2025-06-29 16:04:20 +02:00
parent 06a517af53
commit 0380edeb2a
1 changed files with 25 additions and 33 deletions

View File

@ -1,3 +1,5 @@
version: '3.8'
services: services:
frontend: frontend:
build: build:
@ -6,15 +8,14 @@ services:
- API_HOST=http://ec2-18-193-8-169.eu-central-1.compute.amazonaws.com/ff-api - API_HOST=http://ec2-18-193-8-169.eu-central-1.compute.amazonaws.com/ff-api
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.ff-frontend.rule=PathPrefix(`/ff/`)" - "traefik.http.routers.ff-frontend.rule=PathPrefix(`/ff`)"
- "traefik.http.routers.ff-frontend.entrypoints=web" - "traefik.http.routers.ff-frontend.entrypoints=web"
- "traefik.http.services.ff-frontend.loadbalancer.server.port=80" - "traefik.http.services.ff-frontend.loadbalancer.server.port=80"
- "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:
- proxy - proxy
expose: - app-network
- "80"
db: db:
image: postgres:17-alpine image: postgres:17-alpine
@ -25,8 +26,10 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
volumes:
- db_data:/var/lib/postgresql/data
networks: networks:
- proxy - app-network
coordinator: coordinator:
build: build:
@ -35,28 +38,25 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
- OCR_SERVICE_URL=http://ocr:5051 - OCR_SERVICE_URL=http://ocr:5000
- 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:5050/health || exit 1 test: wget --spider --no-verbose http://127.0.0.1:5000/health || exit 1
interval: 20s interval: 20s
timeout: 10s timeout: 10s
retries: 10 retries: 10
labels: labels:
- "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=5050" - "traefik.http.services.ff-api.loadbalancer.server.port=5000"
- "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:
- proxy - proxy
expose: - app-network
- "5050"
ocr: ocr:
build: build:
@ -65,53 +65,45 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
- EXXETA_SERVICE_URL=http://exxeta:5053/extract - EXXETA_SERVICE_URL=http://exxeta:5000/extract
- SPACY_SERVICE_URL=http://spacy:5052/extract - SPACY_SERVICE_URL=http://spacy:5052/extract
- COORDINATOR_URL=http://coordinator:5050 - COORDINATOR_URL=http://coordinator:5000
networks: networks:
- proxy - app-network
expose:
- "5051"
spacy: spacy:
build: build:
context: backend/spacy-service context: backend/spacy-service
environment: environment:
- VALIDATE_SERVICE_URL=http://validate:5054/validate - VALIDATE_SERVICE_URL=http://validate:5000/validate
volumes: volumes:
- ./backend/spacy-service/spacy_training:/app/spacy_training - ./backend/spacy-service/spacy_training:/app/spacy_training
networks: networks:
- proxy - app-network
expose:
- "5052"
exxeta: exxeta:
build: build:
context: backend/exxetaGPT-service context: backend/exxetaGPT-service
dockerfile: ../../Dockerfile
env_file: env_file:
- .env - .env
environment: environment:
- VALIDATE_SERVICE_URL=http://validate:5054/validate - VALIDATE_SERVICE_URL=http://validate:5000/validate
- COORDINATOR_URL=http://coordinator:5050 - COORDINATOR_URL=http://coordinator:5000
networks: networks:
- proxy - app-network
expose:
- "5053"
validate: validate:
build: build:
context: backend/validate-service context: backend/validate-service
dockerfile: ../../Dockerfile
env_file: env_file:
- .env - .env
environment: environment:
- COORDINATOR_URL=http://coordinator:5050 - COORDINATOR_URL=http://coordinator:5000
networks: networks:
- proxy - app-network
expose:
- "5054"
networks: networks:
proxy: proxy:
external: true external: true
app-network:
driver: bridge