Browse Source

add fluentd

master
zeus 3 years ago
parent
commit
e79615b07e
  1. 4
      docker-compose.yml
  2. 6
      readmongo/swarmlab-app/src/.env

4
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

6
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

Loading…
Cancel
Save