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
Usage
- 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 key
in redirection.io's manager and copy it in the nginx configuration fileredirectionio_project_key PUT HERE YOUR PROJECT KEY;
- build the infrastructure:
docker-compose build
- run it:
docker-compose up -d
Kubernetes example
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/
Basically, it uses images built using the above docker example, for the redirectionio-agent and for nginx with the redirection.io module enabled.
Of course, you'll have to do some changes for your own context, but this might be helpful in case of troubles.