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.prod.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'docker-compose.prod.yml') diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 1206ff9c..58d5ce55 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -2,18 +2,14 @@ version: "3.8" # Docker Compose overrides for production environments services: - frontend: + ui: ports: - "8080:3000" environment: NEXT_PUBLIC_API_BASE_URL: ${OPENDC_API_BASE_URL} - api: + server: ports: - - "8081:80" - environment: - SENTRY_ENVIRONMENT: "production" - - runner: + - "8081:8080" environment: SENTRY_ENVIRONMENT: "production" -- cgit v1.2.3