Skip to content

gufo.thor.services.postgres

postgres service.

Attributes:

Name Type Description
postgres

postgres service singleton.

PostgresService

Bases: DBService

postgres service.

get_compose_image(svc=None)

Get docker-compose.yml image section.

Parameters:

Name Type Description Default
svc ServiceConfig | None

Service's config from services part, if any.

None

Returns:

Type Description
str

Image name.

get_compose_ports(svc=None)

Expose port.