Browse Source

edit docker-compose

master
zeus 3 years ago
parent
commit
593ad932d7
  1. 6
      docker-compose.yml
  2. 93
      docker-compose.yml.backup
  3. 2
      dummyservice/install-dummyservice.sh

6
docker-compose.yml

@ -8,6 +8,8 @@ services:
- "8080:8080" - "8080:8080"
networks: networks:
datacollector-net: datacollector-net:
volumes:
- ./playground-client/src/:/home/node/playground-client/src/
redisserver: redisserver:
#image: hub.swarmlab.io:5480/playground-redisserver:latest #image: hub.swarmlab.io:5480/playground-redisserver:latest
#container_name: redisserver #container_name: redisserver
@ -62,8 +64,8 @@ services:
#build: ./dummyservice #build: ./dummyservice
#ports: #ports:
# - "3001:3001" # - "3001:3001"
# volumes: volumes:
# - ./dummyservice:/usr/src/app - ./dummyservice/swarmlab-app/src/run/:/home/node/dummyservice/dummyservice/swarmlab-app/src/run/
#links: #links:
# - mongo # - mongo
networks: networks:

93
docker-compose.yml.backup

@ -0,0 +1,93 @@
version: "3.3"
services:
webclient:
image: hub.swarmlab.io:5480/poc-datacollector-node:latest
container_name: webclient
ports:
- "8080:8080"
networks:
datacollector-net:
redisserver:
#image: hub.swarmlab.io:5480/playground-redisserver:latest
#container_name: redisserver
image: redis:6.0.9-alpine
container_name: redisserver
#logging:
# driver: "fluentd"
# options:
# fluentd-async-connect: "true"
# tag: mongo.redis
#ports:
# - "6379:6379"
networks:
datacollector-net:
writetomongo:
image: hub.swarmlab.io:5480/poc-datacollector-fluent:latest
container_name: fluentd
user: root
#build: ./WriteToMongo/fluent
# volumes:
# - ./WriteToMongo/fluent:/fluentd/etc
#ports:
# - "24224:24224"
# - "24224:24224/udp"
networks:
datacollector-net:
readmongo:
image: hub.swarmlab.io:5480/poc-datacollector-readmongo:latest
container_name: readmongo_service
restart: always
#logging:
# driver: "fluentd"
# options:
# fluentd-async-connect: "true"
# tag: mongo.node2
#build: ./readmongo
#ports:
# - "3000:3000"
# volumes:
# - ./readmongo:/usr/src/app
networks:
datacollector-net:
dummy:
image: hub.swarmlab.io:5443/poc-datacollector-dummyservice:latest
container_name: dummy_service
restart: always
#logging:
# driver: "fluentd"
# options:
# fluentd-async-connect: "true"
# tag: mongo.node1
#build: ./dummyservice
#ports:
# - "3001:3001"
# volumes:
# - ./dummyservice:/usr/src/app
#links:
# - mongo
networks:
datacollector-net:
# ---- fluentd service ----
mongo:
image: mongo:4.4.9
container_name: mongo
#logging:
# driver: "fluentd"
# options:
# fluentd-async-connect: "true"
# tag: mongo.mongodb
#expose:
#- 27017
#ports:
# - "27017:27017"
networks:
datacollector-net:
# volumes:
# fluent:
# readmongo:
# dummy:
networks:
datacollector-net:

2
dummyservice/install-dummyservice.sh

@ -7,6 +7,8 @@ echo $BASEDIR
cd $BASEDIR cd $BASEDIR
cd ./swarmlab-app/src/
npm i npm i
npm cache clean --force npm cache clean --force

Loading…
Cancel
Save