Skip to content

gufo.thor.services.migrate

migrate service.

Attributes:

Name Type Description
migrate

migrate service singleton.

MigrateService

Bases: NocService

Database migrations.

Migrate is a virtual service which launched just after database services became healthy. Then it applies pending database migrations and exits. Other database-dependend services are started only after successful termination of migrate.

get_compose_environment(config, svc)

Environment settings for container.

Additionally set NOC_MIGRATE_SLOTS_PATH.

get_compose_volumes(config, svc)

Get volumes settings for docker compose.

Additionaly map slots configuration.