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