Browse Source

docker-compose

master
lefteris 4 years ago
parent
commit
8a9a6bd8da
  1. 46
      docker-compose.yml

46
docker-compose.yml

@ -48,26 +48,26 @@ services:
- mongo
networks:
playground-net:
readmongo:
container_name: readmongo_service
restart: always
depends_on:
- writetomongo
logging:
driver: "fluentd"
options:
fluentd-async-connect: "true"
tag: mongo.access
build: ./readmongo
image: readmongo:latest
ports:
- "3000:3000"
volumes:
- ./readmongo:/usr/src/app
links:
- mongo
networks:
playground-net:
# readmongo:
# container_name: readmongo_service
# restart: always
# depends_on:
# - writetomongo
# logging:
# driver: "fluentd"
# options:
# fluentd-async-connect: "true"
# tag: mongo.access
# build: ./readmongo
# image: readmongo:latest
# ports:
# - "3000:3000"
# volumes:
# - ./readmongo:/usr/src/app
# links:
# - mongo
# networks:
# playground-net:
dummy:
container_name: dummy_service
restart: always
@ -78,12 +78,12 @@ services:
options:
fluentd-async-connect: "true"
tag: mongo.dummy
build: ./DummyService
image: DummyService:latest
build: ./dummyservice
image: dummyservice:latest
ports:
- "3001:3001"
volumes:
- ./DummyService:/usr/src/app
- ./dummyservice:/usr/src/app
links:
- mongo
networks:

Loading…
Cancel
Save