Skip to content

Commit

Permalink
llm-service now reachable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcjustin committed Nov 29, 2024
1 parent ba643b4 commit d2fee38
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,25 @@ services:
#ports:
# - "5000:5000"
labels:
- traefik.enable=true
- traefik.http.routers.shl-creator-${COMPOSE_PROJECT_NAME}.rule=Host(`llm-service.${BASE_DOMAIN}`)
- traefik.http.routers.shl-creator-${COMPOSE_PROJECT_NAME}.entrypoints=websecure
- traefik.http.routers.shl-creator-${COMPOSE_PROJECT_NAME}.tls=true
- traefik.http.routers.shl-creator-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt
- "traefik.enable=true"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.rule=Host(`llm-service.${BASE_DOMAIN}`)"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.tls=true"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt"
#- traefik.enable=true
#- traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.rule=Host(`llm-service.${BASE_DOMAIN}`)
#- traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.entrypoints=websecure
#- traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.tls=true
#- traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt
# add CORS middleware, configured to return `Access-Control-Allow-Origin: *`
# NB accessControlAllowOrigin is deprecated, but not noted in docs
# https://github.com/traefik/traefik/issues/8796
- "traefik.http.middlewares.llm-service-${COMPOSE_PROJECT_NAME}-cors.headers.accessControlAllowOriginList=*"
# allow all verbs used by FHIR REST
- "traefik.http.middlewares.llm-service-${COMPOSE_PROJECT_NAME}-cors.headers.accessControlAllowMethods=HEAD,GET,OPTIONS,PATCH,POST,PUT,DELETE"
- "traefik.http.middlewares.llm-service-${COMPOSE_PROJECT_NAME}-cors.headers.accessControlAllowHeaders=Authorization,Origin,Content-Type,Accept"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.middlewares=llm-service-${COMPOSE_PROJECT_NAME}-cors"
- "traefik.http.services.llm-service-${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=5000"
networks:
- ingress

Expand Down

0 comments on commit d2fee38

Please sign in to comment.