Using redirection.io with Docker
It is quite common to use Docker in development or production environments.
As this has been requested by several of our users, we have set up a short example of a Docker stack using the redirection.io agent and the nginx module.
This sample project can be found on our Github account: https://github.com/redirectionio/docker-example
- clone the repository
git clone https://github.com/redirectionio/docker-example.git cd docker-example
- create an account and a project on redirection.io, retrieve your
project keyin redirection.io's manager and copy it in the nginx configuration file
redirectionio_project_key PUT HERE YOUR PROJECT KEY;
- build the infrastructure:
- run it:
docker-compose up -d
For Google Kubernetes Engine (GKE) users, we provide an example GKE project that may be helpful to get redirection.io work in your context: https://github.com/redirectionio/kubernetes-example/
Of course, you'll have to do some changes for your own context, but this might be helpful in case of troubles.