Last active
December 1, 2017 16:10
-
-
Save allanbatista/ed9a792a15c7497c851d1dad418cd7c6 to your computer and use it in GitHub Desktop.
Docker Container Utils
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
#!/bin/bash | |
# add user to group and log out. | |
# sudo usermod -a -G docker $USER | |
docker run -d --restart unless-stopped --name elasticsearch -p 9200:9200 elasticsearch:2.4.6 | |
docker run -d --restart unless-stopped --name kibana -p 5601:5601 --link elasticsearch:elasticsearch kibana:4.6.6 | |
docker run -d --restart unless-stopped --name mongo -p 27017:27017 mongo:3.4.9 --storageEngine mmapv1 | |
docker run -d --restart unless-stopped --name redis -p 6379:6379 redis:4.0.1 | |
docker run -p 3000 -e "DOCKER_HOST=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+')" -e TZ=America/Recife -v /home/allanbatista/workspace/containers/skyhub/container:/root -it allanbatista/dev-skyhub:1 bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment