Skip to content

migrate service.


Name Type Description

migrate service singleton.


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_command(config, svc)

Get compose command.

Considers config.cli.no_migrations option.

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.