Skip to content

Commit

Permalink
Run update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
docker-library-bot committed Aug 16, 2019
1 parent f3b327b commit 481bd76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mongo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ See the [MongoDB manual](https://docs.mongodb.com/manual/) for information on us

## Customize configuration without configuration file

Most MongoDB configuration can be set through flags to `mongod`. The entrypoint of the image is created to pass its arguments along to `mongod`. See below an example of setting MongoDB to use a [smaller default file size](https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-smallfiles) via `docker run`.
Most MongoDB configuration can be set through flags to `mongod`. The entrypoint of the image is created to pass its arguments along to `mongod`. See below an example of setting MongoDB to use a different [threading and execution model](https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-serviceexecutor) via `docker run`.

```console
$ docker run --name some-mongo -d mongo --smallfiles
$ docker run --name some-mongo -d mongo --serviceExecutor adaptive
```

And here is the same with a `docker-compose.yml` file
Expand All @@ -175,7 +175,7 @@ version: '3.1'
services:
mongo:
image: mongo
command: --smallfiles
command: --serviceExecutor adaptive
```

To see the full list of possible options, check the MongoDB manual on [`mongod`](https://docs.mongodb.com/manual/reference/program/mongod/) or check the `--help` output of `mongod`:
Expand Down

0 comments on commit 481bd76

Please sign in to comment.