From d82a8e78dd46bf716571b20506586186c812ab9e Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Sun, 22 Jan 2023 15:04:19 +0300 Subject: [PATCH] update readme --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index f85c756..c14cc0c 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,21 @@ * RABBITMQ_USER * RABBITMQ_PASSWORD * RABBITMQ_USE_SSL + +## docker-compose sample +``` +version: "2" + +services: + barcode-scanner: + image: mxfox.ru/mxfox/barcode-scanner-client:latest + devices: + - "/dev/ttyACM0:/dev/ttyACM0" + environment: + - 'SCANNER_PORT=/dev/ttyACM0' + - 'RABBITMQ_HOST=rabbitmq' + - 'RABBITMQ_USER=user' + - 'RABBITMQ_PASSWORD=pass' + - 'RABBITMQ_USE_SSL=false' + - 'RABBITMQ_VIRTUAL_HOST=/' +``` \ No newline at end of file