Sign inSign up

cenk1cenk2/nginx-ingress

By cenk1cenk2

•Updated 2 days ago

Image
0

2.3K

cenk1cenk2/nginx-ingress repository overview

⁠docker-nginx-ingress

pipeline status Docker Pulls Docker Image Size (latest by date) Docker Image Version (latest by date) GitHub last commit

⁠Description

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.

⁠Setup

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.

⁠Environment Variables

⁠NGINX_INGRESS

The 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
      }
    }
  }
]

⁠Flags

Flag / EnvironmentDescriptionTypeDefault
$NGINX_INGRESS*The configuration for the ingress operation of Nginx.string
json({ server: struct { listen: string, options: map[string]string }, upstream: struct { servers: []string, options: map[string]string } })

* required

CLI

Flag / EnvironmentDescriptionTypeDefault
$LOG_LEVELDefine the log level for the application.string
enum("panic", "fatal", "warn", "info", "debug", "trace")
"info"
$ENV_FILEEnvironment files to inject.string[]

Tag summary

Content type

Image

Digest

sha256:b70a6210f…

Size

28.4 MB

Last updated

2 days ago

docker pull cenk1cenk2/nginx-ingress