Containers - Docker support
Starting with Rudder 6.2, there is a Docker image for running a fully containerized relay.
It is still in technical preview state, and we would like to discuss your container use cases on our chat room to improve our container support, especially in the context of container orchestration tools (Kubernetes, Nomad, etc.)
Download the image from the Docker Hub with:
docker pull rudderio/rudder-relay
You can also build it from the repository.
Specify a version to build with:
docker build --build-arg VERSION=6.2.0 .
The container is configurable with env variables:
RUDDER_RELAY_ID: agent id
RUDDER_RELAY_PRIVKEY: agent private key
RUDDER_RELAY_CERTIFICATE: agent certificate
RUDDER_RELAY_SERVER: hostname/IP of the server, default is
RUDDER_RELAY_SERVER_PUBKEY: server public key
The env variables have priority over persisted values. If not provided at first start of the container, the id and keys will be generated.
The id, keys and certificates can be persisted by making
a persistent volume.
Start the container with:
docker run -p443:443 -p5309:5309
The fist start will take several seconds to generate the required keys and certificates, to download initial policies from the Rudder server, and will then start the services.
It is currently not possible to modify the ports used by the container.
We provide a sample Nomad configuration in
rudder-relay.nomad, but it has not been
tested in a real use case, we’re open to feedbacks and improvements.
← Migrate to external DB Development versions →