mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-01-18 00:34:25 -05:00
Create mongodb.sh
This commit is contained in:
parent
e18ddcba03
commit
4380cca812
11
mongodb.sh
Normal file
11
mongodb.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p /var/lib/docker/storage/mongodb/ && chmod -Rf 777 /var/lib/docker/storage/mongodb
|
||||
|
||||
sudo docker run -d \
|
||||
--name=mongodb \
|
||||
-p 27017:27017 \
|
||||
-v /var/lib/docker/storage/mongodb/mongodb:/data/db \
|
||||
-e TZ=America/New_York \
|
||||
--restart unless-stopped \
|
||||
mongo:latest
|
Loading…
x
Reference in New Issue
Block a user