fixed problems
parent
06a517af53
commit
0380edeb2a
|
|
@ -1,3 +1,5 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
build:
|
||||
|
|
@ -6,15 +8,14 @@ services:
|
|||
- API_HOST=http://ec2-18-193-8-169.eu-central-1.compute.amazonaws.com/ff-api
|
||||
labels:
|
||||
- "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.services.ff-frontend.loadbalancer.server.port=80"
|
||||
- "traefik.http.middlewares.ff-frontend-stripprefix.stripprefix.prefixes=/ff"
|
||||
- "traefik.http.routers.ff-frontend.middlewares=ff-frontend-stripprefix"
|
||||
networks:
|
||||
- proxy
|
||||
expose:
|
||||
- "80"
|
||||
- app-network
|
||||
|
||||
db:
|
||||
image: postgres:17-alpine
|
||||
|
|
@ -25,8 +26,10 @@ services:
|
|||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- proxy
|
||||
- app-network
|
||||
|
||||
coordinator:
|
||||
build:
|
||||
|
|
@ -35,28 +38,25 @@ services:
|
|||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- OCR_SERVICE_URL=http://ocr:5051
|
||||
- SPACY_SERVICE_URL=http://spacy:5052/extract
|
||||
- EXXETA_SERVICE_URL=http://exxeta:5053/extract
|
||||
- OCR_SERVICE_URL=http://ocr:5000
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
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
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
labels:
|
||||
- "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.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.routers.ff-api.middlewares=ff-api-stripprefix"
|
||||
networks:
|
||||
- proxy
|
||||
expose:
|
||||
- "5050"
|
||||
- app-network
|
||||
|
||||
ocr:
|
||||
build:
|
||||
|
|
@ -65,53 +65,45 @@ services:
|
|||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- EXXETA_SERVICE_URL=http://exxeta:5053/extract
|
||||
- EXXETA_SERVICE_URL=http://exxeta:5000/extract
|
||||
- SPACY_SERVICE_URL=http://spacy:5052/extract
|
||||
- COORDINATOR_URL=http://coordinator:5050
|
||||
- COORDINATOR_URL=http://coordinator:5000
|
||||
networks:
|
||||
- proxy
|
||||
expose:
|
||||
- "5051"
|
||||
- app-network
|
||||
|
||||
spacy:
|
||||
build:
|
||||
context: backend/spacy-service
|
||||
environment:
|
||||
- VALIDATE_SERVICE_URL=http://validate:5054/validate
|
||||
- VALIDATE_SERVICE_URL=http://validate:5000/validate
|
||||
volumes:
|
||||
- ./backend/spacy-service/spacy_training:/app/spacy_training
|
||||
networks:
|
||||
- proxy
|
||||
expose:
|
||||
- "5052"
|
||||
- app-network
|
||||
|
||||
exxeta:
|
||||
build:
|
||||
context: backend/exxetaGPT-service
|
||||
dockerfile: ../../Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- VALIDATE_SERVICE_URL=http://validate:5054/validate
|
||||
- COORDINATOR_URL=http://coordinator:5050
|
||||
- VALIDATE_SERVICE_URL=http://validate:5000/validate
|
||||
- COORDINATOR_URL=http://coordinator:5000
|
||||
networks:
|
||||
- proxy
|
||||
expose:
|
||||
- "5053"
|
||||
- app-network
|
||||
|
||||
validate:
|
||||
build:
|
||||
context: backend/validate-service
|
||||
dockerfile: ../../Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- COORDINATOR_URL=http://coordinator:5050
|
||||
- COORDINATOR_URL=http://coordinator:5000
|
||||
networks:
|
||||
- proxy
|
||||
expose:
|
||||
- "5054"
|
||||
- app-network
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
external: true
|
||||
app-network:
|
||||
driver: bridge
|
||||
Loading…
Reference in New Issue