This repository provides an image to run the Pathfinder project in Docker.
Before starting the pathfinder image, you can override the configuration of the instance by specifiying one or more environment variables either on the docker-compose file or on the docker run command line:
- For docker-compose configuration just add the variable name and its value in the
environment
section, like here:
pathfinder:
image: openmatchmaking/pathfinder:latest
ports:
- 9000:9000
environment:
- LOG_LEVEL=error
- For manual execution add a
-e
option with each variable and value
Available variables:
SECURED_MODE
: Enable the SSL/TLS mode for connections with RabbitMQ. Default: noCONFIG_PATH
: Path to a custom settings file. Default: an empty stringLISTENED_IP
: The used IP for a server. Default: 127.0.0.1LISTENED_PORT
: The listened port. Default: 9000RABBITMQ_HOST
: The used host by RabbitMQ broker. Default: 127.0.0.1RABBITMQ_PORT
: The listened port by RabbitMQ broker. Default: 5672RABBITMQ_VIRTUAL_HOST
: The virtual host of a RabbitMQ node. Default: vhostRABBITMQ_USER
: A RabbitMQ application username. Default: userRABBITMQ_PASSWORD
: A RabbitMQ application password. Default: passwordSSL_CERTIFICATE
: Path to a SSL certificate. Default: an empty stringSSL_KEY
: Path to a SSL public key. Default: an empty stringLOG_LEVEL
: Logging level for the application. Default: info
Name | Description | Default value | Values |
---|---|---|---|
RABBITMQ_HOST | Hostname of the RabbitMQ instance. | rabbitmq | – |
RABBITMQ_PORT | Listened port by the RabbitMQ instance. | 5672 | – |
SERVICE_HOST | Hostname of the service. | localhost | – |
SERVICE_PORT | Listened port by the service. | 8000 | – |
WAIT_FOR_RABBITMQ | Wait until the RabbitMQ container isn't initialized. | false |
false or a positive integer value |
WAIT_FOR_SERVICE | Wait until the service container isn't initialized. | false |
false or a positive integer value |