Services launch#
This section gives examples for launching LVM containers.
To launch LVM services, the LP must be deployed.
Important! The Events service must be running with the option to persist deleted events (EVENT_DELETION_LOG=1) to synchronize with Matcher. For more information, see the "Saving deleted events" section of the LP Administrator Guide.
The sequence of launching LVM services is as follows:
- The database container launch
- Python Matcher proxy container launch
- Projector container launch
- Matcher container launch
It is recommended to launch containers one by one and wait for the container status to become "up" (use the
docker pscommand).
When launching each service, certain parameters are used, for example, --detach, --network, etc.
See the "Docker commands" section for details about working with containers.
The database container launch#
Use the following command to launch the database:
docker run \
--rm \
--entrypoint='' \
--network=host \
dockerhub.visionlabs.ru/luna/luna-vinder-projector:v.0.0.2 \
python3 -m base_scripts.db_create --luna-config=http://127.0.0.1:5070/1
Python Matcher proxy container launch#
Use the following command to launch the service:
docker run \
--env=CONFIGURATOR_HOST=127.0.0.1 \
--env=CONFIGURATOR_PORT=5070 \
--env=PORT=5110 \
--env=WORKER_COUNT=1 \
--env=RELOAD_CONFIG=1 \
--env=RELOAD_CONFIG_INTERVAL=10 \
--env=SERVICE_TYPE="proxy" \
-v /etc/localtime:/etc/localtime:ro \
-v /tmp/logs/python-matcher-proxy:/srv/logs \
--name=luna-python-matcher-proxy \
--restart=always \
--detach=true \
--network=host \
dockerhub.visionlabs.ru/luna/luna-python-matcher:v.1.22.2
Projector container launch#
Use the following command to launch the service:
docker run \
--env=CONFIGURATOR_HOST=127.0.0.1 \
--env=CONFIGURATOR_PORT=5070 \
--env=PORT=5260 \
--env=RELOAD_CONFIG=1 \
--env=RELOAD_CONFIG_INTERVAL=10 \
-v /etc/localtime:/etc/localtime:ro \
-v /tmp/logs/luna-vinder-projector:/srv/logs \
--name luna-vinder-projector \
--restart=always \
--detach=true \
--network=host \
dockerhub.visionlabs.ru/luna/luna-vinder-projector:v.0.0.2
Matcher container launch#
Use the following command to launch the service:
docker run \
--env=CONFIGURATOR_HOST=127.0.0.1 \
--env=CONFIGURATOR_PORT=5070 \
--env=PORT=5270 \
--env=RELOAD_CONFIG=1 \
--env=RELOAD_CONFIG_INTERVAL=10 \
-v /etc/localtime:/etc/localtime:ro \
-v /tmp/logs/luna-vinder-matcher:/srv/logs \
--name luna-vinder-matcher \
--restart=always \
--detach=true \
--network=host \
dockerhub.visionlabs.ru/luna/luna-vinder-matcher:v.0.0.2