https://github.com/bengabp/mongodbdocker
Deploy a mongodb server through a docker container
https://github.com/bengabp/mongodbdocker
docker docker-compose
Last synced: 3 months ago
JSON representation
Deploy a mongodb server through a docker container
- Host: GitHub
- URL: https://github.com/bengabp/mongodbdocker
- Owner: bengabp
- Created: 2023-08-31T16:31:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T11:48:27.000Z (over 2 years ago)
- Last Synced: 2025-03-22T05:27:50.551Z (over 1 year ago)
- Topics: docker, docker-compose
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MongodbDocker
Deploy a mongodb server through a docker container using one command
## Installing Docker and Docker-compose
If you run linux you can install docker using this commandline
```commandline
sudo apt install-get docker.io
```
You may also get issues connecting the docker service.
The problem is that you need to add the current user into the docker group so that they can run the `docker` command without appending `sudo`
```commandline
# Create docker group
sudo groupadd docker
# Add user to docker group
sudo usermod -aG docker ${USER}
#RE-authenticate user
su -s ${USER}
```
## Install docker-compose
```commandline
sudo apt install -y docker-compose
```
## Deploy docker container
```commandline
git clone https://github.com/bengabp/MongodbDocker.git
cd MongodbDocker/
docker-compose up -d --build
```