- Docker installed 🐳
- Rename the file
.env.exampleto.envand populate with appropriate values.
.
-
Set the
MODALITYvariable in your.envfile to either env or prod depending on the mode you want to run:env: For development purposes. This mode uses local development configurationsprod: For production purposes. This mode uses optimized production configurations. .
-
Run the project:
docker-compose up --build
NOTE: this port and host are the default one on the .env.example
- FrontEnd (
envMode): http://localhost:8080 🌟 - FrontEnd (
prodMode): http://localhost:8080 🌟
Backend: http://localhost:5000 🔧
- Nginx: http://localhost:80 (only work on
prodmode, Acts as a reverse proxy and serves the frontend and backend, access it if youre usingprodmode) 🖥️
- Frontend Development Dockerfile (env_Dockerfile): Used for local development with live reloading.
- Frontend Production Dockerfile (prod_Dockerfile): Used for serving the built frontend in production.
.
- Backend Development Dockerfile (env_dockerfile): Used for local development of the backend.
- Backend Production Dockerfile (prod_dockerfile): Used for production with Gunicorn for serving the backend.