diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-07-30 12:15:10 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-08-03 11:54:44 +0200 |
| commit | a01f964b531f12fd89cbdb0f2132aecbfaebf546 (patch) | |
| tree | 4a2c3795d3d1ae394e9ab785b9229ab6e14ccbdf /docker-compose.override.yml | |
| parent | 41b0ed59421b301bac652e47d1a2909145aa5936 (diff) | |
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.
Diffstat (limited to 'docker-compose.override.yml')
| -rw-r--r-- | docker-compose.override.yml | 15 |
1 files changed, 4 insertions, 11 deletions
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" |
