Life Cost reads all runtime configuration from environment variables. When running locally, these variables are loaded automatically from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/akevalion/life_cost/llms.txt
Use this file to discover all available pages before exploring further.
.env file in the project root via python-dotenv. In Docker or any other deployment environment, they are supplied directly as container environment variables. None of the three required variables have defaults — the application will fail to start if any of them are missing or incorrect.
Required Variables
MySQL connection string used by SQLAlchemy to connect to the database.Format:
mysql://user:password@host:port/dbnameExample: mysql://admin:secret@localhost/life_dbThe port segment (:3306) may be omitted when using the MySQL default port.OAuth 2.0 client ID issued by Google Cloud Console. Obtained when you create an
OAuth 2.0 Client ID credential for a Web Application. Looks like
xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com.OAuth 2.0 client secret paired with
GOOGLE_CLIENT_ID. Keep this value out of
version control — never commit it to a public repository..env File Example
Create a file named.env at the project root. python-dotenv will load it automatically when the app starts.
SECRET_KEY is auto-generated on every startup. The app calls This means all active browser sessions are invalidated whenever the process restarts. For persistent sessions across restarts or across multiple workers, set
os.urandom(24) to produce a new secret key each time it launches:SECRET_KEY to a fixed, cryptographically random value in your environment.Passing Variables via Docker Compose
When using the bundleddocker-compose.yml, set the three variables under the environment key of the app service. Do not hard-code real secrets in the compose file — use shell variable substitution or a secrets manager in production.
3000 internally; the example above maps it to 5000 on the host. Adjust the host-side port as needed for your environment.