From 9e2ed95e82d356f65465c608a475493b8696c6f7 Mon Sep 17 00:00:00 2001 From: maffettone Date: Wed, 10 Apr 2024 11:09:30 -0700 Subject: [PATCH] feat: dash app and nginx --- containers/mmm5-tax-day-compose.yaml | 9 +++++++++ containers/nginx/locs.d/gsas.conf | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/containers/mmm5-tax-day-compose.yaml b/containers/mmm5-tax-day-compose.yaml index 0dfac9e..57ac6a8 100644 --- a/containers/mmm5-tax-day-compose.yaml +++ b/containers/mmm5-tax-day-compose.yaml @@ -22,6 +22,15 @@ services: target: /etc/bluesky/kafka.yml read_only: true + gsas-ui: + image: ghcr.io/maffettone/bluesky-adaptive-ui:latest + command: python3 /src/bluesky-adaptive-ui/bluesky_adaptive_ui/default_dash_app/app.py --agent-address gsas + volumes: + - type: bind + source: ../bluesky-adaptive-ui + target: /src/bluesky-adaptive-ui + read_only: true + kmeans-gsas: image: bluesky:latest command: uvicorn bluesky_adaptive.server:app --host 0.0.0.0 diff --git a/containers/nginx/locs.d/gsas.conf b/containers/nginx/locs.d/gsas.conf index 2f577e7..e86203a 100644 --- a/containers/nginx/locs.d/gsas.conf +++ b/containers/nginx/locs.d/gsas.conf @@ -5,3 +5,11 @@ location /gsas/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_read_timeout 60s; } + +location /gsas/ui/ { + proxy_pass http://gsas-ui:8050/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_read_timeout 60s; +}