Run a Control Plane on Docker, to set up your Private Locations and run load generators
Docker is a tool for running applications in containers.
In this example:
- we use Docker to configure a docker service to run the Gatling Control Plane
- the Control Plane configuration is mounted as a volume
Control Plane service
The DockerHub repository hosts the Control Plane image, identified as gatlingcorp/control-plane.
The following Docker Compose file will generate a control-plane container using the latest version of the image.
version: '3.8' services: control-plane: image: gatlingcorp/control-plane:latest container_name: control-plane volumes: - /etc/control-plane:/app/conf
/etc/control-plane directory must include a file named
This file should contain the Control Plane configuration.
/etc/control-plane directory may also include a LogBack configuration file named
Depending on the type of private location you choose to configure, you will need to set up appropriate credentials.
For instance, if you are using AWS, you can mount the configuration and credentials files from your home directory by including the following lines in your
volumes: - /etc/control-plane:/app/conf - ~/.aws:/root/.aws
When using private packages, you will need to expose the port by including the following lines in your YAML configuration:
ports: - "8082:8082"