Skip to content

Commit

Permalink
use the network created by the github-runner
Browse files Browse the repository at this point in the history
Hopefully fixes supercharge#24.
  • Loading branch information
akoskm authored Jun 5, 2021
1 parent a16e87b commit 320ce2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start-mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [ -z "$MONGODB_REPLICA_SET" ]; then
echo " - version [$MONGODB_VERSION]"
echo "#############################################"

docker run --name mongodb --publish $MONGODB_PORT:27017 --detach mongo:$MONGODB_VERSION
docker run --name mongodb --network "${{ job.container.network }}" --publish $MONGODB_PORT:27017 --detach mongo:$MONGODB_VERSION
return
fi

Expand All @@ -36,7 +36,7 @@ echo " - version [$MONGODB_VERSION]"
echo " - replica set [$MONGODB_REPLICA_SET]"
echo "###########################################"

docker run --name mongodb --publish $MONGODB_PORT:$MONGODB_PORT --detach mongo:$MONGODB_VERSION mongod --replSet $MONGODB_REPLICA_SET --port $MONGODB_PORT
docker run --name mongodb --network "${{ job.container.network }}" --publish $MONGODB_PORT:$MONGODB_PORT --detach mongo:$MONGODB_VERSION mongod --replSet $MONGODB_REPLICA_SET --port $MONGODB_PORT


echo ""
Expand Down

0 comments on commit 320ce2d

Please sign in to comment.