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 - mongo
networks: networks:
playground-net: playground-net:
readmongo: # readmongo:
container_name: readmongo_service # container_name: readmongo_service
restart: always # restart: always
depends_on: # depends_on:
- writetomongo # - writetomongo
logging: # logging:
driver: "fluentd" # driver: "fluentd"
options: # options:
fluentd-async-connect: "true" # fluentd-async-connect: "true"
tag: mongo.access # tag: mongo.access
build: ./readmongo # build: ./readmongo
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:
playground-net: # playground-net:
dummy: dummy:
container_name: dummy_service container_name: dummy_service
restart: always restart: always
@ -78,12 +78,12 @@ services:
options: options:
fluentd-async-connect: "true" fluentd-async-connect: "true"
tag: mongo.dummy tag: mongo.dummy
build: ./DummyService build: ./dummyservice
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:

Loading…
Cancel
Save