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: #ports:
# - "3000:3000" # - "3000:3000"
volumes: 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: networks:
datacollector-net: datacollector-net:
dummy: dummy:
@ -68,7 +68,7 @@ services:
#ports: #ports:
# - "3001:3001" # - "3001:3001"
volumes: 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 - ./WriteToMongo/fluent/fluent.conf:/fluentd/etc/fluent.conf
deploy: deploy:
mode: replicated mode: replicated

6
readmongo/swarmlab-app/src/.env

@ -1,7 +1,8 @@
NODE_ENV=development NODE_ENV=development
#MONGO #MONGO
URL=mongodb://mongo:27017/ #URL=mongodb://mongo:27017/
URL=mongodb://mongo.poc-datacollector_datacollector-net:27017/
USER= USER=
PASS= PASS=
DATABASE=fluentdb DATABASE=fluentdb
@ -9,7 +10,8 @@ COLLECTION=test
#REDIS #REDIS
REDIS=redisserver #REDIS=redisserver
REDIS=redisserver.poc-datacollector_datacollector-net
REDIS_PORT=6379 REDIS_PORT=6379
#SERVER #SERVER

Loading…
Cancel
Save