--constraint node.labels. in compose file
zookeeper:
image: sweh/test:fake_zookeeper
deploy:
replicas: 2
placement:
constraints: [node.labels.Zookeeper == true ]
volumes:
- "/myapp/zookeeper/data:/usr/zookeeper/data"
- "/myapp/zookeeper/logs:/usr/zookeeper/logs"
- "/myapp/zookeeper/conf:/usr/zookeeper/conf"
environment:
CFG_FILE: /usr/zookeeper/conf/zoo.cfg
memcached:
image: sweh/test:fake_memcached
deploy:
replicas: 1
placement:
constraints: [node.labels.Memcached == true ]
Also in JavaScript:
- configure column menu in kendo grid angular to hae only locked
- react npm build not working
- archiver compressed file in nodejs
- find leap year javascript
- lodash remove multiple items from array
- webpack react proxy not working
- route parammap subscribe angular 9
- angular material multi select ngmodel
- next js newsletter
- add javascript keyup on input
- jquery slideup
- react native nav bars
- jquery replicate div on drag
- query params vuejs
- angular url parameter
- javascript two character integer
- bullmq redis cluster
- display time in html using javascript
- add a Google Font to a VueJS
- electron no resize
- how to change background image dynamically in react
- react not recognizing lorem
- foreach and replace item based on condition
- push object into array javascript