hostname for services is not inferred correctly in the Docker context #80

Closed
opened 2023-05-16 16:20:08 +00:00 by rishighan · 0 comments
rishighan commented 2023-05-16 16:20:08 +00:00 (Migrated from github.com)

When running inside a Docker container, threetwo-ui is not reading the UNDERLYING_HOSTNAME correctly from the supplied docker-compose.env file. This causes a lot of API calls to fail since they fallback to localhost. This has to do with how Vite handles environment variables (https://stackoverflow.com/a/73534387/656708)

The possible solution is to prefix the environment variables with VITE_ wherever they are used in the UI

When running inside a Docker container, `threetwo-ui` is not reading the `UNDERLYING_HOSTNAME` correctly from the supplied `docker-compose.env` file. This causes a lot of API calls to fail since they fallback to `localhost`. This has to do with how Vite handles environment variables (https://stackoverflow.com/a/73534387/656708) The possible solution is to prefix the environment variables with `VITE_` wherever they are used in the UI
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: frishi/threetwo#80