mirror of
https://github.com/saveweb/mongo_stwp_image.git
synced 2024-09-19 16:15:28 -07:00
18 lines
391 B
Markdown
18 lines
391 B
Markdown
|
# MongoDB Images
|
||
|
|
||
|
## How to use this image
|
||
|
|
||
|
|
||
|
- Build the image
|
||
|
|
||
|
```bash
|
||
|
docker build . -t mongo_stwp
|
||
|
```
|
||
|
|
||
|
- Run the container `docker compose up` to initialize the container
|
||
|
|
||
|
- Edit the `./etc/mongo/mongod.conf`
|
||
|
|
||
|
- If you want to use a keyfile, put it as `./etc/mongo/mongo.keyfile` anytime, the container will set right permissions to it automatically. (Optional)
|
||
|
|
||
|
- Run `docker compose up`
|