Dagger
Search

nginx

No long description provided.

Installation

dagger install github.com/levlaz/daggerverse/nginx@69bfee7da32c46e481999e71a031d695b680d4b7

Entrypoint

Return Type
Nginx
Example
func (m *myModule) example() *Nginx  {
	return dag.
			Nginx()
}
@function
def example() -> dag.Nginx:
	return (
		dag.nginx()
	)
@func()
example(): Nginx {
	return dag
		.nginx()
}

Types

Nginx 🔗

serve() 🔗

example usage: “dagger up –port 8080:80 serve –directory .”

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
directoryDirectory !-No description provided
Example
dagger -m github.com/levlaz/daggerverse/nginx@69bfee7da32c46e481999e71a031d695b680d4b7 call \
 serve --directory DIR_PATH
func (m *myModule) example(directory *Directory) *Service  {
	return dag.
			Nginx().
			Serve(directory)
}
@function
def example(directory: dagger.Directory) -> dagger.Service:
	return (
		dag.nginx()
		.serve(directory)
	)
@func()
example(directory: Directory): Service {
	return dag
		.nginx()
		.serve(directory)
}