-
-
Save asakasinsky/1c9d958e45848ce54f0445c17e62b7b3 to your computer and use it in GitHub Desktop.
Docker run #docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir -p /opt/clickhouse/{data,etc,log} | |
sudo chmod 777 /opt/clickhouse/{data,etc,log} | |
sudo docker run -d --name clickhouse \ | |
--ulimit nofile=262144:262144 \ | |
-p 127.0.0.1:8123:8123 -p 127.0.0.1:9000:9000 \ | |
-v /opt/clickhouse/log:/var/log/clickhouse-server \ | |
-v /opt/clickhouse/data:/var/lib/clickhouse \ | |
yandex/clickhouse-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --name mongodb \ | |
-v ~/mongo/data:/data/db \ | |
-p 27017:27017 \ | |
mongo:latest | |
mongo | |
use admin | |
db.createUser( | |
{ | |
user: "myUserAdmin", | |
pwd: "abc123", | |
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] | |
} | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run --name redis -p 6379:6379 -d redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -p 6379:6379 --name redisearch redislabs/redisearch:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment