This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.0' | |
services: | |
mongo: | |
image: mongo:4.4 | |
ports: | |
- '27017:27017' | |
command: mongod --replSet rs0 | |
healthcheck: | |
test: test $$(echo "rs.initiate({_id:'rs0',members:[{_id:0,host:\"127.0.0.1:27017\"}]}).ok || rs.status().ok" | mongo --host mongo:27017 --quiet) -eq 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[cfg(test)] | |
pub mod test { | |
use super::GenVec; | |
#[test] | |
fn gen_vec() { | |
let mut gv = GenVec::new(); | |
// Insert | |
let a = gv.insert("a"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
mosquitto: | |
image: eclipse-mosquitto:latest | |
restart: always | |
ports: | |
- "1883:1883" | |
- "9001:9001" | |
networks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[outputs.influxdb]] | |
urls = ["http://influxdb:8086"] | |
[[outputs.file]] | |
files = ["stdout", "/tmp/metrics.out"] | |
[[inputs.mqtt_consumer]] | |
servers = ["tcp://mosquitto:1883"] | |
topics = [ | |
"bedroom/#" |