# Copy to .env and fill in. Variables with the EST_ prefix configure the service (nested keys use __); # other variables here are read by docker compose or the entrypoint and ignored by the service. # --- service --------------------------------------------------------------------------------- # EST_ENV=prod # also loads config/prod.toml; unset or dev for local work EST_LLM__ANTHROPIC__API_KEY=sk-ant-... EST_LLM__OPENAI__API_KEY=sk-... # only needed if a pipeline step or the embeddings use OpenAI EST_API__KEYS=client_a:key1,client_b:key2 # --- running without docker: the database connection (docker compose builds its own) ------------- EST_DATABASE__DSN=postgresql+psycopg://user:pass@localhost:5432/estimator # EST_CONFIG_DIR=config # --- docker compose ----------------------------------------------------------------------------- # letters and digits only: the password becomes part of a connection URL POSTGRES_PASSWORD=change-me # APP_PORT=8000 # MIGRATE_ON_START=true # only for one container run without compose (compose has a migrate job) # --- web UI (optional) ------------------------------------------------------------------------- # EST_WEB__ENABLED=true # EST_WEB__SESSION_SECRET= # Hashes contain $ signs: keep the single quotes, or compose will try to expand them. # docker compose run --rm app hash-password # EST_WEB__USERS='alex:pbkdf2_sha256$600000$...$...' # EST_WEB__COOKIE_SECURE=false # prod.toml sets true; only turn off for plain http on a non-localhost address # --- behind a reverse proxy --------------------------------------------------------------------- # EST_API__PROXY_HEADERS=true # EST_API__FORWARDED_ALLOW_IPS=172.16.0.0/12 # the proxy's address range, never "*" if the port is public