Skip to content

fix: frontend on docker compose

Gonzalo Arreche requested to merge caaos/mobilizon:fix/docker-compose into main

Make vite listen on 0.0.0.0 when running on the development environment from docker compose, to allow access to it from outside the container.

To achieve this, the new optional environment variable VITE_LISTEN_HOST was added, which will control what host we want vite to be listening at on development.

In addition, this change includes adding the port vite is using (5173) to the exposed ports on the docker-compose.yml, and updating the use of "docker-compose" to "docker compose" on the Makefile to match the newer version and to be consistent with the documentation.

Merge request reports