Skip to content

Commit 730d42b

Browse files
committed
update docker compose for replica set
1 parent ee16ed7 commit 730d42b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Docker/test/docker-compose.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ services:
4646
start_period: 5s
4747
mongodb:
4848
image: uptime_database_mongo:latest
49-
command: ["mongod", "--quiet", "--auth"]
49+
restart: always
50+
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
5051
ports:
5152
- "27017:27017"
5253
volumes:

0 commit comments

Comments
 (0)