Browse Source

auto check

master
zeus 3 years ago
parent
commit
688932421c
  1. 44
      docker-compose.yml

44
docker-compose.yml

@ -13,11 +13,11 @@ services:
#container_name: redisserver #container_name: redisserver
image: redis:6.0.9-alpine image: redis:6.0.9-alpine
container_name: redisserver container_name: redisserver
logging: #logging:
driver: "fluentd" # driver: "fluentd"
options: # options:
fluentd-async-connect: "true" # fluentd-async-connect: "true"
tag: mongo.redis # tag: mongo.redis
#ports: #ports:
# - "6379:6379" # - "6379:6379"
networks: networks:
@ -38,11 +38,11 @@ services:
image: hub.swarmlab.io:5480/poc-datacollector-readmongo:latest image: hub.swarmlab.io:5480/poc-datacollector-readmongo:latest
container_name: readmongo_service container_name: readmongo_service
restart: always restart: always
logging: #logging:
driver: "fluentd" # driver: "fluentd"
options: # options:
fluentd-async-connect: "true" # fluentd-async-connect: "true"
tag: mongo.node2 # tag: mongo.node2
#build: ./readmongo #build: ./readmongo
#ports: #ports:
# - "3000:3000" # - "3000:3000"
@ -54,29 +54,29 @@ services:
image: hub.swarmlab.io:5443/poc-datacollector-dummyservice:latest image: hub.swarmlab.io:5443/poc-datacollector-dummyservice:latest
container_name: dummy_service container_name: dummy_service
restart: always restart: always
logging: #logging:
driver: "fluentd" # driver: "fluentd"
options: # options:
fluentd-async-connect: "true" # fluentd-async-connect: "true"
tag: mongo.node1 # tag: mongo.node1
#build: ./dummyservice #build: ./dummyservice
#ports: #ports:
# - "3001:3001" # - "3001:3001"
# volumes: # volumes:
# - ./dummyservice:/usr/src/app # - ./dummyservice:/usr/src/app
links: #links:
- mongo # - mongo
networks: networks:
datacollector-net: datacollector-net:
# ---- fluentd service ---- # ---- fluentd service ----
mongo: mongo:
image: mongo:4.4.9 image: mongo:4.4.9
container_name: mongo container_name: mongo
logging: #logging:
driver: "fluentd" # driver: "fluentd"
options: # options:
fluentd-async-connect: "true" # fluentd-async-connect: "true"
tag: mongo.mongodb # tag: mongo.mongodb
#expose: #expose:
#- 27017 #- 27017
#ports: #ports:

Loading…
Cancel
Save