Simple Chat Room in NodeJS, expressJS and mongoDB in Docker Swarm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
582 B

version: '3.3'
services:
rs1:
image: mongo:3.4
command: mongod --replSet "rs0"
networks:
- mongo
rs2:
image: mongo:3.4
command: mongod --replSet "rs0"
networks:
- mongo
rs3:
image: mongo:3.4
command: mongod --replSet "rs0"
networks:
- mongo
rs:
image: ericsmalling/mongors:3.4
build:
context: ./mongors
networks:
- mongo
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
networks:
mongo:
driver: overlay
attachable: true