SCO Autolavados reads its runtime configuration from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Luisangelebp/SCO_Autolavados/llms.txt
Use this file to discover all available pages before exploring further.
.env file located at the repository root. Docker Compose loads this file automatically at startup and injects the values into each container as environment variables. You must create this file before running docker compose up for the first time — the application will refuse to start if any required variable is absent.
Required Variables
These variables must be present in your.env file. The backend validates JWT_SECRET explicitly at boot time and calls process.exit(1) if it is missing.
Full PostgreSQL connection string used by Prisma to connect to the database.
Use the format
postgresql://USER:PASSWORD@db:5432/DBNAME.
The hostname db refers to the sco_db Docker Compose service — do not replace it with localhost.Example: postgresql://sco_user:supersecret@db:5432/sco_dbArbitrary secret string used to sign and verify JSON Web Tokens.
The server reads this value in
src/index.ts and immediately calls process.exit(1) if it is undefined.
Use a long, random value — never share it publicly or commit it to version control.PostgreSQL username. This value is passed to the
sco_db container as POSTGRES_USER to initialize the database on first run.Example: sco_userPostgreSQL password for
DB_USER. Passed to the sco_db container as POSTGRES_PASSWORD.Example: supersecretName of the PostgreSQL database to create. Passed to the
sco_db container as POSTGRES_DB. Must match the database name in DATABASE_URL.Example: sco_dbOptional Variables
The TCP port on which the Express backend listens. Defaults to
3000 if not set.
The docker-compose.yml maps this port as 3000:3000, so changing it requires updating both the .env file and the ports mapping in the Compose file.Enables filesystem polling for the
tsx watch dev server inside the backend container. Docker on Linux, macOS, and Windows uses a virtualized filesystem layer that can make inotify-based file watching unreliable, so polling is required for live reload to work correctly.
This variable is hardcoded to true directly in docker-compose.yml for the backend service and is always active in the development stack — you do not need to set it in your .env file.Example .env File
Copy the block below to the repository root and fill in your own values before starting the stack.
.env
Variable Relationships
TheDB_USER, DB_PASSWORD, and DB_NAME values initialize the PostgreSQL container on its first boot. The DATABASE_URL must embed those same credentials and point to the db hostname so that Prisma (running inside the backend container) can reach the database over the Docker Compose internal network. A mismatch between these values is the most common cause of connection errors during first-time setup.
Deployment Guide
Step-by-step instructions for running the full stack with Docker Compose.
Multi-Currency Configuration
How exchange rates are fetched and stored for USD / BsS operations.