Public | Automated Build

Last pushed: 2 years ago
Short Description
dynamic nginx configuration
Full Description

docker-redx

Creates a docker container for redx.

Configuration

The configuration file of redx can be dynamically configured by passing environment variables to docker run. Sane defaults are picked for you so you do not need to supply any environment variables.

Here are the list (which are linked to the redx equivalents). It is important to note that when setting a string value, include the quotes (ie REDIS_HOST="'127.0.0.1'"). You are basically inserting lua code into the configuration file.

  • REDIS_HOST
  • REDIS_PORT
  • REDIS_PASSWORD
  • REDIS_TIMEOUT
  • REDIS_KEEPALIVE_POOL_SIZE
  • REDIS_KEEPALIVE_MAX_IDLE_TIMEOUT
  • MAX_PATH_LENGTH
  • SESSION_LENGTH
  • PLUGINS
  • DEFAULT_SCORE

If you're looking to do further customization like adding custom plugins or using a custom nginx conf file, its best to roll your own docker image using this as its base.

Example

docker run --name redx -d -p 80:80 -p 443:443 -p 8081:8081 -p 8082:8082 -e REDIS_HOST="'redis.domain.com'" -e PLUGINS=\{\'stickiness\',\'random\'\} cbarraford/redx
Docker Pull Command
Owner
cbarraford
Source Repository

Comments (0)