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.

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

The container’s public IP address.

async start() None[source]

Start the container.

async stop() None[source]

Stop the container.