mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-01-18 12:34:31 -05:00
12 lines
287 B
Bash
12 lines
287 B
Bash
#!/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
|