.env File¶
Auto-generated per environment at {project}/{environment}/.env. Manages runtime configuration injected into Docker containers.
Key Variables¶
| Variable | Source | Description |
|---|---|---|
COMPOSE_PROJECT_NAME |
project + env hash | Unique Docker Compose project name |
ODOO_IMAGE |
ServerModel | Docker image tag |
HOST_PORT |
ServerModel | Host port mapping |
ADMIN_PASSWORD |
ProjectModel | Odoo master admin password |
DB_USER |
Fixed (odoo) |
PostgreSQL user |
DB_PASSWORD |
Auto-generated | PostgreSQL password |
DB_NAME |
Option | Default database |
HIDE_DB_LIST |
Option | Hide DB picker |
PROXY_MODE |
ServerModel | Traefik proxy mode |
GIT_TOKEN_* |
of repo auth |
Custom token variables referenced by ${VAR} in project.yml |
Token Storage¶
When using of repo auth, any ${VAR} tokens (e.g. ${GIT_TOKEN_CLIENT_X}) are resolved interactively and stored in this .env file. This keeps secrets out of the version-controlled project.yml:
# In project.yml — safe to commit
token: ${GIT_TOKEN_CLIENT_X}
# In <env>/.env — DO NOT COMMIT
GIT_TOKEN_CLIENT_X=ghp_abc123def456
Docker Compose Integration¶
The .env file is automatically sourced by Docker Compose via env_file: directives in the generated docker-compose.yml. You should not need to edit it manually in normal operation — use of env conf to modify configuration instead.