update docker compose for replica set
This commit is contained in:
1 parent
ee16ed7987
commit
730d42bae2
1 file changed
+2
-1
@@ -46,7 +46,8 @@ services:
|
|||||||
start_period: 5s
|
start_period: 5s
|
||||||
mongodb:
|
mongodb:
|
||||||
image: uptime_database_mongo:latest
|
image: uptime_database_mongo:latest
|
||||||
command: ["mongod", "--quiet", "--auth"]
|
restart: always
|
||||||
|
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in new issue
Block a user