Image Overview: openresty

Overview: openresty Chainguard Image

OpenResty is a high Performance Web Platform Based on Nginx and LuaJIT.

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard-private/openresty:latest

Usage

To start an OpenResty container with this image, you can use the following command:

docker run --name openresty -p 80:80 cgr.dev/chainguard/openresty

This will start OpenResty in non-daemon mode with the openresty’s default Nginx configuration file.

To adhere to stricter security guidelines, in Chainguard’s OpenResty image, the default locations for writable files are moved as follows:

  • logs: /var/log/openresty/
  • nginx.conf: /etc/nginx/nginx.conf
  • default.conf: /etc/nginx/conf.d/default.conf
  • *_temp directories: /var/run/openresty/

Configuration

You can mount your custom configuration files to the container.

docker run --name openresty -p 80:80 -v /path/to/your/nginx.conf:/etc/nginx/nginx.conf cgr.dev/chainguard/openresty

For more information, refer to the official OpenResty documentation and the OpenResty image documentation.

Last updated: 2024-06-23 00:43