You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
version: "3.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
webclient:
|
|
|
|
image: hub.swarmlab.io:5480/poc-datacollector-node:latest
|
|
|
|
container_name: webclient
|
|
|
|
ports:
|
|
|
|
- "8085:8080"
|
|
|
|
networks:
|
|
|
|
datacollector-net:
|
|
|
|
redisserver:
|
|
|
|
#image: hub.swarmlab.io:5480/playground-redisserver:latest
|
|
|
|
#container_name: redisserver
|
|
|
|
container_name: redis:6.2.6-alpine
|
|
|
|
logging:
|
|
|
|
driver: "fluentd"
|
|
|
|
options:
|
|
|
|
fluentd-async-connect: "true"
|
|
|
|
tag: mongo.redis
|
|
|
|
image: redis:6.0.9-alpine
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
networks:
|
|
|
|
datacollector-net:
|
|
|
|
writetomongo:
|
|
|
|
image: writemongo:latest
|
|
|
|
container_name: fluentd
|
|
|
|
user: root
|
|
|
|
build: ./WriteToMongo/fluent
|
|
|
|
# volumes:
|
|
|
|
# - ./WriteToMongo/fluent:/fluentd/etc
|
|
|
|
ports:
|
|
|
|
- "24224:24224"
|
|
|
|
- "24224:24224/udp"
|
|
|
|
networks:
|
|
|
|
datacollector-net:
|
|
|
|
readmongo:
|
|
|
|
container_name: readmongo_service
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- writetomongo
|
|
|
|
logging:
|
|
|
|
driver: "fluentd"
|
|
|
|
options:
|
|
|
|
fluentd-async-connect: "true"
|
|
|
|
tag: mongo.node2
|
|
|
|
build: ./readmongo
|
|
|
|
image: readmongo:latest
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
# volumes:
|
|
|
|
# - ./readmongo:/usr/src/app
|
|
|
|
links:
|
|
|
|
- mongo
|
|
|
|
networks:
|
|
|
|
datacollector-net:
|
|
|
|
dummy:
|
|
|
|
container_name: dummy_service
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- writetomongo
|
|
|
|
logging:
|
|
|
|
driver: "fluentd"
|
|
|
|
options:
|
|
|
|
fluentd-async-connect: "true"
|
|
|
|
tag: mongo.node1
|
|
|
|
build: ./dummyservice
|
|
|
|
image: dummyservice:latest
|
|
|
|
ports:
|
|
|
|
- "3001:3001"
|
|
|
|
# volumes:
|
|
|
|
# - ./dummyservice:/usr/src/app
|
|
|
|
links:
|
|
|
|
- mongo
|
|
|
|
networks:
|
|
|
|
datacollector-net:
|
|
|
|
# ---- fluentd service ----
|
|
|
|
mongo:
|
|
|
|
container_name: mongo
|
|
|
|
logging:
|
|
|
|
driver: "fluentd"
|
|
|
|
options:
|
|
|
|
fluentd-async-connect: "true"
|
|
|
|
tag: mongo.mongodb
|
|
|
|
image: mongo:4.4.9
|
|
|
|
expose:
|
|
|
|
- 27017
|
|
|
|
ports:
|
|
|
|
- "27017:27017"
|
|
|
|
networks:
|
|
|
|
datacollector-net:
|
|
|
|
|
|
|
|
# volumes:
|
|
|
|
# fluent:
|
|
|
|
# readmongo:
|
|
|
|
# dummy:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
datacollector-net:
|