Commit 3877514e authored by Hines, Jesse's avatar Hines, Jesse
Browse files

Launch dashboard in docker compose

parent 5d12c98c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2,13 +2,13 @@

REST API that allows running and querying the results from the ExaDigit simulation and RAPS.

## Loading RAPS submodule
## Loading RAPS and Dashboard submodules
This uses [RAPS](https://github.com/ExaDigiT/RAPS) to run the simulation, which is loaded as a 
submodule. Make sure to run
submodule. The [Simulation Dashboard](https://github.com/ExaDigiT/SimulationDashboard) is also in a
separate repo and loaded as a submodule. Make to load the submodules by running:
```
git submodule update --init --recursive
```
to load the submodule.

## Downloading FMU models
The Frontier FMU models aren't currently publicly available. To run Frontier simulations with cooling enabled, use this
@@ -28,7 +28,7 @@ To run a local version of the server run
```bash
docker compose up --wait
```
The server will be hosted on http://localhost:8080
The API server will be hosted on http://localhost:8081. The dashboard will be hosted on http://localhost:8080.

You'll need at least 16 GiB of RAM, preferably 32 GiB for druid and RAPS to run smoothly.

+26 −2
Original line number Diff line number Diff line
@@ -201,7 +201,7 @@ services:
    container_name: simulation-server
    command: ["python", "-m", "simulation_server.server.main"]
    ports:
      - "8080:8080"
      - "8081:8081"
    depends_on:
      druid-coordinator:
        condition: service_healthy
@@ -216,6 +216,7 @@ services:
      kafka:
        condition: service_healthy
    environment:
      - EXADIGIT_HTTP_PORT=8081
      - EXADIGIT_ENV=dev
      # - EXADIGIT_ROOT_PATH
      - EXADIGIT_DEBUG_MODE=true
@@ -224,8 +225,31 @@ services:
      - DRUID_SERVICE_URL=http://druid-router:8888
      - KAFKA_BOOTSTRAP=kafka:9092
    healthcheck:
      test: ["CMD-SHELL", "wget -q -O - http://localhost:8080/openapi.json || exit 1"]
      test: ["CMD-SHELL", "wget -q -O - http://localhost:8081/openapi.json || exit 1"]
      interval: 10s
      retries: 3
      start_interval: 1s
      start_period: 1m

  simulation-dashboard:
    pull_policy: build
    image: exadigit-simulation-dashboard
    build:
      context: ./simulation_dashboard
      args:
        VITE_PORT: "8080"
        VITE_AUTH_URL: ""
        VITE_BASE_PATH: "http://localhost:8080"
        VITE_API_PATH: "http://localhost:8081"
    container_name: simulation-dashboard
    ports:
      - "8080:80"
    depends_on:
      simulation-server:
        condition: service_healthy
    healthcheck:
      test: ["CMD-SHELL", "curl --fail -s http://localhost:80/index.html || exit 1"]
      interval: 10s
      retries: 3
      start_interval: 1s
      start_period: 10s
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class AppSettings(BaseSettings):
    root_path: str = ""
    """ The root path of the application if you are behind a proxy """

    http_port: int = 8080
    http_port: int = 8081

    allow_origins: list[str] = []