gufo.thor.targets.compose¶
docker compose target.
ComposeTarget
¶
Bases: BaseTarget
docker compose target.
Prepares docker-compose.yml and all the configuration,
then starts with docker compose up -d
migrate()
¶
Migrate configs.
migrate_postgres_password()
¶
Migrate default postgres password.
prepare()
¶
Generate docker-compose.yml, data directories, and configs.
process_mongo_fcv(first_install)
¶
Initializes the stored MongoDB FCV for new and legacy installations.
For existing installations, raises an error if the stored FCV does not match the FCV expected by the configured NOC version.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
first_install
|
bool
|
Whether this is the first installation of Thor. |
required |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If the stored MongoDB FCV does not match the FCV expected by the configured NOC version. |
render_config()
¶
Render docker-compose.yml.
Returns:
| Type | Description |
|---|---|
str
|
String containing config. |