Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leafney/alpine-mongo
Alpine Mongo Image
https://github.com/leafney/alpine-mongo
alpine alpine-mongo docker mongodb
Last synced: 3 months ago
JSON representation
Alpine Mongo Image
- Host: GitHub
- URL: https://github.com/leafney/alpine-mongo
- Owner: leafney
- Created: 2017-03-10T16:28:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-23T07:44:30.000Z (almost 6 years ago)
- Last Synced: 2024-11-04T18:44:53.513Z (4 months ago)
- Topics: alpine, alpine-mongo, docker, mongodb
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Alpine-Mongo
alpine mongo image
#### Get Image from Docker Hub
```
$ docker pull leafney/alpine-mongo
```#### Run default container
```
$ docker run --name mongo -d -p 27017:27017 leafney/alpine-mongo:latest
```#### Run a container by yourself config
```
$ docker run --name mongo --restart=always -d -p 27017:27017 -v /home/tiger/mongo:/data leafney/alpine-mongo:latest
```Get the three directory under `/data` folder in the git library sample program copy to the `/home/tiger/mongo` directory:
```
data
-- config
-- mongod.conf
-- db
-- logs
```You can customize the settings in the `mongod.conf` file.
eg:
default `bind_ip` is `127.0.0.1`, if you want to connect from remote server,you can add `bind_ip = 0.0.0.0` in the config file.
And Then, Restart the container:
```
$ docker restart mongo
```