From fc8119545e227df497b7736d4c46610b41e82149 Mon Sep 17 00:00:00 2001 From: Justin McReynolds Date: Mon, 14 Oct 2024 22:28:13 -0700 Subject: [PATCH] Adding llm-wrap as 'llm-service'. This also switches shl-creator to the epic-uwmed-prod branch, will need to revert that at some point. --- dev/default.env | 2 ++ dev/docker-compose.yaml | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/dev/default.env b/dev/default.env index 3fddcd1..11e3582 100644 --- a/dev/default.env +++ b/dev/default.env @@ -17,3 +17,5 @@ COMPOSE_PROJECT_NAME= #FHIR_IMAGE_TAG= #POSTGRES_IMAGE_TAG= + +#OPENAI_API_KEY= diff --git a/dev/docker-compose.yaml b/dev/docker-compose.yaml index a154067..5fd9370 100644 --- a/dev/docker-compose.yaml +++ b/dev/docker-compose.yaml @@ -67,7 +67,9 @@ services: - fhir-internal shl-creator: - image: ghcr.io/uwcirg/shl-ips:${SHL_CREATOR_IMAGE_TAG:-latest} + #image: ghcr.io/uwcirg/shl-ips:${SHL_CREATOR_IMAGE_TAG:-latest} + #image: ghcr.io/uwcirg/shl-ips:${SHL_CREATOR_IMAGE_TAG:-ai-chat-experimental} + image: ghcr.io/uwcirg/shl-ips:${SHL_CREATOR_IMAGE_TAG:-epic-uwmed-prod} environment: VITE_API_BASE: https://shl-server.${BASE_DOMAIN}/api VITE_INTERMEDIATE_FHIR_SERVER_BASE: https://fhir.${BASE_DOMAIN}/fhir/ @@ -103,6 +105,21 @@ services: networks: - ingress + llm-service: + image: ghcr.io/uwcirg/llm-wrap:${LLM_SERVICE_IMAGE_TAG:-latest} + environment: + - OPENAI_API_KEY=${OPENAI_API_KEY} + #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 + networks: + - ingress + volumes: db-data: {} shl-server-data: {}