From a01f964b531f12fd89cbdb0f2132aecbfaebf546 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sat, 30 Jul 2022 12:15:10 +0200 Subject: refactor(web/server): Create standalone OpenDC distribution This change updates the Quarkus configuration of the OpenDC web server to serve as a fully standalone distribution that is capable of serving the web UI, web API, and experiment runner. Such an approach vastly simplifies local deployments. For Docker deployments, we create a custom Quarkus profile that uses PostgreSQL and disables the web UI. --- docker-compose.override.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'docker-compose.override.yml') diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 314adcb1..86aff681 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -2,26 +2,19 @@ version: "3.8" # Docker Compose overrides for development environments services: - frontend: + ui: build: opendc-web/opendc-web-ui ports: - "8080:3000" environment: NEXT_PUBLIC_API_BASE_URL: http://localhost:8081 - api: + server: build: context: . - dockerfile: opendc-web/opendc-web-api/Dockerfile + dockerfile: opendc-web/opendc-web-server/Dockerfile ports: - - "8081:80" - environment: - SENTRY_ENVIRONMENT: "development" - - runner: - build: - context: . - dockerfile: opendc-web/opendc-web-runner/Dockerfile + - "8081:8080" environment: SENTRY_ENVIRONMENT: "development" -- cgit v1.2.3