pub fn default_data_dir() -> Result<PathBuf>Expand description
Return the default local data directory for this service.
Pattern §25 + §28: The same .env and config.toml in ~/.<service>/
work for both Docker and bare-metal deployment without modification.
| Environment | Path |
|---|---|
| Container | /data (bind-mounted from host) |
| Bare-metal | ~/.soma (user home dir) |
The name should match the docker-compose.yml volume mount source.