update readme
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
752d2c0415
commit
d82a8e78dd
18
README.md
18
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=/'
|
||||
```
|
Loading…
Reference in New Issue