Skip to content

Commit

Permalink
Rename replica set (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
gloooor authored Sep 6, 2021
1 parent 3ea6f15 commit 2448993
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
mongo-test:
container_name: ship-test-mongo
image: mongo:4.2
command: --replSet ship-test-rs --bind_ip_all
command: --replSet test-rs --bind_ip_all
networks:
- ship-test
ports:
Expand All @@ -16,7 +16,7 @@ services:
environment:
- HOST=mongo-test
- PORT=27017
- REPLICA_SET_NAME=ship-test-rs
- REPLICA_SET_NAME=test-rs
- IMMORTAL=true
networks:
- ship-test
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
mongo:
container_name: ship-mongo
image: mongo:4.2
command: --replSet ship-rs --bind_ip_all
command: --replSet rs --bind_ip_all
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
Expand All @@ -21,7 +21,7 @@ services:
- PORT=27017
- USERNAME=root
- PASSWORD=root
- REPLICA_SET_NAME=ship-rs
- REPLICA_SET_NAME=rs
networks:
- ship
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion src/config/environment/development.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mongo": {
"connection": "mongodb://root:root@mongo/api-development?authSource=admin&replicaSet=ship-rs"
"connection": "mongodb://root:root@mongo/api-development?authSource=admin&replicaSet=rs"
},
"jwt": {
"secret": "the_secret"
Expand Down
2 changes: 1 addition & 1 deletion src/config/environment/test.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mongo": {
"connection": "mongodb://mongo-test/api-test?replicaSet=ship-test-rs"
"connection": "mongodb://mongo-test/api-test?replicaSet=test-rs"
},
"redis": {
"host": "redis-test",
Expand Down

0 comments on commit 2448993

Please sign in to comment.