Browse Source

add fluentd

master
zeus 3 years ago
parent
commit
c708bdc4df
  1. 20
      docker-compose.yml

20
docker-compose.yml

@ -6,6 +6,9 @@ services:
container_name: webclient
ports:
- "8080:8080"
privileged: true
cap_add:
- NET_ADMIN
networks:
datacollector-net:
volumes:
@ -24,18 +27,18 @@ services:
# - "6379:6379"
networks:
datacollector-net:
writetomongo:
image: hub.swarmlab.io:5480/poc-datacollector-fluent:latest
container_name: fluentd
user: root
#writetomongo:
# image: hub.swarmlab.io:5480/poc-datacollector-fluent:latest
# container_name: fluentd
# user: root
#build: ./WriteToMongo/fluent
# volumes:
# - ./WriteToMongo/fluent:/fluentd/etc
#ports:
# - "24224:24224"
# - "24224:24224/udp"
networks:
datacollector-net:
# networks:
# datacollector-net:
readmongo:
image: hub.swarmlab.io:5480/poc-datacollector-readmongo:latest
container_name: readmongo_service
@ -67,8 +70,9 @@ services:
volumes:
- ./dummyservice/swarmlab-app/src/run/:/home/node/dummyservice/dummyservice/swarmlab-app/src/run/
- ./WriteToMongo/fluent/fluent.conf:/fluentd/etc/fluent.conf
#links:
# - mongo
deploy:
mode: replicated
replicas: 2
networks:
datacollector-net:
# ---- fluentd service ----

Loading…
Cancel
Save