Browse Source

docker-compose mongo

master
lefos 3 years ago
parent
commit
6b7deb226a
  1. 22
      docker-compose.yml

22
docker-compose.yml

@ -21,8 +21,8 @@ services:
container_name: fluentd container_name: fluentd
user: root user: root
build: ./WriteToMongo/fluent build: ./WriteToMongo/fluent
volumes: # volumes:
- ./WriteToMongo/fluent:/fluentd/etc # - ./WriteToMongo/fluent:/fluentd/etc
ports: ports:
- "24224:24224" - "24224:24224"
- "24224:24224/udp" - "24224:24224/udp"
@ -42,8 +42,8 @@ services:
image: readmongo:latest image: readmongo:latest
ports: ports:
- "3000:3000" - "3000:3000"
volumes: # volumes:
- ./readmongo:/usr/src/app # - ./readmongo:/usr/src/app
links: links:
- mongo - mongo
networks: networks:
@ -82,8 +82,8 @@ services:
image: dummyservice:latest image: dummyservice:latest
ports: ports:
- "3001:3001" - "3001:3001"
volumes: # volumes:
- ./dummyservice:/usr/src/app # - ./dummyservice:/usr/src/app
links: links:
- mongo - mongo
networks: networks:
@ -96,7 +96,7 @@ services:
options: options:
fluentd-async-connect: "true" fluentd-async-connect: "true"
tag: mongo.mongodb tag: mongo.mongodb
image: mongo image: mongo:4.4.9
expose: expose:
- 27017 - 27017
ports: ports:
@ -104,10 +104,10 @@ services:
networks: networks:
playground-net: playground-net:
volumes: # volumes:
fluent: # fluent:
readmongo: # readmongo:
dummy: # dummy:
networks: networks:
playground-net: playground-net:

Loading…
Cancel
Save