Create mongodb.sh

This commit is contained in:
casjay 2020-09-06 01:20:36 -04:00 committed by GitHub
parent e18ddcba03
commit 4380cca812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
mongodb.sh Normal file
View 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