From c708bdc4df40f8ea49bba41a1bfd216549b97b9b Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 21 Nov 2021 21:03:50 +0200 Subject: [PATCH] add fluentd --- docker-compose.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 208c34a..0793415 100644 --- a/docker-compose.yml +++ b/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 ----