Nginx ingress controller for docker-compose stacks, where it takes in a JSON environment variable for the defined containers and load-balances them through streams of Nginx.
You can run this application as a docker-compose stack. The image is hosted as cenk1cenk2/nginx-ingress on DockerHub. Check out the docker-compose file for example configuration.
NGINX_INGRESSThe environment variable NGINX_INGRESS is an array of objects in the JSON form to define the endpoints and load-balanced containers.
[
{
"server": {
"listen": "string", // listen port and type for endpoint
"options": {
// key-value pairs of options that should be passed to "server" configuration of Nginx
}
},
"upstream": {
"servers": [
// string slice of balanced servers
],
"options": {
// key-value pairs of options that should be passed to "upstream" configuration of Nginx
}
}
}
]
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$NGINX_INGRESS* | The configuration for the ingress operation of Nginx. | stringjson({ server: struct { listen: string, options: map[string]string }, upstream: struct { servers: []string, options: map[string]string } }) |
* required
CLI
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$LOG_LEVEL | Define the log level for the application. | stringenum("panic", "fatal", "warn", "info", "debug", "trace") | "info" |
$ENV_FILE | Environment files to inject. | string[] |
Content type
Image
Digest
sha256:b70a6210f…
Size
28.4 MB
Last updated
2 days ago
docker pull cenk1cenk2/nginx-ingress