From e79615b07e8bbeab60f5959b965e5f3cad9eb5ab Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 21 Nov 2021 22:35:22 +0200 Subject: [PATCH] add fluentd --- docker-compose.yml | 4 ++-- readmongo/swarmlab-app/src/.env | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0793415..365ec10 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,7 +52,7 @@ services: #ports: # - "3000:3000" volumes: - - ./readmongo/swarmlab-app/src/run/:/home/node/readmongo/readmongo/swarmlab-app/src/run/ + - ./readmongo/swarmlab-app/src/run/:/home/node/readmongo/swarmlab-app/src/run/ networks: datacollector-net: dummy: @@ -68,7 +68,7 @@ services: #ports: # - "3001:3001" volumes: - - ./dummyservice/swarmlab-app/src/run/:/home/node/dummyservice/dummyservice/swarmlab-app/src/run/ + - ./dummyservice/swarmlab-app/src/run/:/home/node/dummyservice/swarmlab-app/src/run/ - ./WriteToMongo/fluent/fluent.conf:/fluentd/etc/fluent.conf deploy: mode: replicated diff --git a/readmongo/swarmlab-app/src/.env b/readmongo/swarmlab-app/src/.env index 15c3103..4b9850e 100644 --- a/readmongo/swarmlab-app/src/.env +++ b/readmongo/swarmlab-app/src/.env @@ -1,7 +1,8 @@ NODE_ENV=development #MONGO -URL=mongodb://mongo:27017/ +#URL=mongodb://mongo:27017/ +URL=mongodb://mongo.poc-datacollector_datacollector-net:27017/ USER= PASS= DATABASE=fluentdb @@ -9,7 +10,8 @@ COLLECTION=test #REDIS -REDIS=redisserver +#REDIS=redisserver +REDIS=redisserver.poc-datacollector_datacollector-net REDIS_PORT=6379 #SERVER