seaworthy.containers.nginx

class NginxContainer(name='nginx', image='nginx:alpine', **kwargs)[source]

Nginx container definition.

base_kwargs()[source]

Publish all exposed ports to the host.

exec_nginx(args)[source]

Execute a nginx command inside a running container.

Params args:a list of args for the command
exec_signal(signal='reload')[source]

Send a signal to the Nginx master process (nginx -s).

Parameters:signal – one of: stop, quit, reopen, or reload
wait_for_start()[source]

Wait for Nginx to return any valid HTTP response.