Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 1.59 KB

File metadata and controls

18 lines (10 loc) · 1.59 KB

Using the redirection.io agent as a reverse proxy in a Docker environment

This example shows how to use the redirection.io agent as a reverse proxy in a Docker environment. It is the most simple and versatile way to install redirection.io in your Docker stack, as it can be used with any backend service. The redirection.io agent act as a very fast reverse proxy, intercepting requests and responses between the client and the backend service.

Description

The service directory contains the redirectionio-agent service: a simple Dockerfile to get the agent running. The /etc/redirectionio/agent.yml file is used to configure the agent and proxify the traffic to a backend service.

The docker-compose.yml file also mentions a nginx service, which is a simple Nginx server used as a backend service. You can replace it with your own backend service.

The redirection.io agent as a reverse proxy

redirectionio-agent

The agent is installed using our manual installation instructions. Note that we have enabled a /var/lib/redirectionio volume, used to store redirection.io agent's cache data.