Commit Graph

6 Commits

Author SHA1 Message Date
Felipe Cardoso
4d1bf86d19 Add APP URL env variable to frontend project 2025-03-16 10:58:15 +01:00
Felipe Cardoso
5ad886a53e Add support for serving static files from DATA_FILES_DIR
All checks were successful
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Successful in 53s
Build and Push Docker Images / build-frontend (push) Has been skipped
Introduce a new environment variable, `DATA_FILES_DIR`, for configuring static file storage. Updated `docker-compose` files to mount the host directory and propagate the variable. Implemented FastAPI `StaticFiles` to serve files from this directory under the `/files` route.
2025-03-12 18:23:42 +01:00
Felipe Cardoso
9e7bc35a2f Remove unused frontend_dev_modules volume from dev config
The `frontend_dev_modules` volume was redundant and is no longer being used in the development workflow. This change simplifies the `docker-compose.dev.yml` file by eliminating unnecessary configuration.
2025-03-05 10:31:46 +01:00
Felipe Cardoso
eaa2561a46 Update node_modules mount path in docker-compose.dev.yml
Replaces the named volume `frontend_dev_modules` with a direct path `/app/node_modules`. This change simplifies development setup and ensures consistency across environments.
2025-03-05 10:30:16 +01:00
Felipe Cardoso
a924e0d5b2 Add .env file support to docker-compose configurations
Added the `env_file` directive to both `docker-compose.yml` and `docker-compose.dev.yml` to load environment variables from a `.env` file. This ensures consistent environment variable management across different configurations.
2025-02-28 09:20:42 +01:00
Felipe Cardoso
d283f3a3ed Refactor Docker setup for environment flexibility and dev support
Moved environment variables to .env.template for better management and updated docker-compose files to use them. Added separate docker-compose.dev.yml for development, a Makefile for streamlined commands, and split backend Dockerfile into development and production stages. Updated .gitignore to include new changes.
2025-02-27 13:23:14 +01:00