This is a production ready docker-compose setup for the application.
Every time the main branch of a module is updated, the docker image is rebuilt and pushed to the docker hub.
- Clone the repository
- Run
docker-compose up
to start the application - Connect to the application on
http://localhost/
On the host machine :
- Clone the repository
- Build the frontend image with the good environnement variable setup.
The environnement variables are processed at build time, so you need to rebuild the image to change them. By default, the frontend is connected to the backend in localhost. It means if you want to host the app. You must configure "URLBACK" and "URLWS" by "http://:3500" and "ws://:4000"
A possible way to do that is to edit the GitHub action workflow to build the frontend image with the good environnement variables. See the make envfile step in the workflow : "docker-img-publish.yml"
- In docker compose, replace frontend image by your custom image.
- Run
docker-compose up
to start the application - Open host machine's port 80 to the internet
- Connect to the application on
http://<host-ip>/