level 3 basics
This commit is contained in:
+9
-2
@@ -3,9 +3,16 @@
|
||||
APP_HOST=0.0.0.0
|
||||
APP_PORT=8080
|
||||
APP_ENV=lab
|
||||
LOG_LEVEL=info
|
||||
SESSION_TTL_SECONDS=3600
|
||||
# Choose credentials locally. File paths contain no secret values.
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Local synthetic database. Use a password without URL reserved characters.
|
||||
# Compose injects DATABASE_URL into the API from these three values.
|
||||
# The password below is a placeholder: change it in the untracked .env.
|
||||
POSTGRES_USER=messenger
|
||||
POSTGRES_PASSWORD=replace-with-a-local-password
|
||||
POSTGRES_DB=messenger
|
||||
# Optional. When set, the API reads the URL from this file instead of DATABASE_URL.
|
||||
# DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
SESSION_STORE=postgres
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
|
||||
Reference in New Issue
Block a user