betty.extension.nginx.docker module

Integrate Betty with Docker.

class betty.extension.nginx.docker.Container[source]

Bases: object

A Docker container with nginx, configured to serve a Betty site.

Parameters:
__init__(www_directory_path: pathlib.Path, docker_directory_path: pathlib.Path, nginx_configuration_file_path: pathlib.Path)[source]
Parameters:
property ip: str

The container’s public IP address.

async start() None[source]

Start the container.

Return type:

None

async stop() None[source]

Stop the container.

Return type:

None