Last active
August 11, 2019 21:49
-
-
Save PeterKneale/f7a930862ed981476d8b5d791c04ab99 to your computer and use it in GitHub Desktop.
Common dockerised infra
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
# Stop all containers: | |
docker kill $(docker ps -q) | |
# Remove all containers | |
docker rm $(docker ps -a -q) | |
# Postgres | |
docker run --rm -d --name postgres \ | |
-p 5432:5432 \ | |
-e "POSTGRES_USER=test" \ | |
-e "POSTGRES_DB=test" \ | |
postgres:9.6 | |
# SQL Server | |
docker run --rm -d --name sqlserver \ | |
-e "ACCEPT_EULA=Y" \ | |
-e "SA_PASSWORD=P@ssword" \ | |
-p 1433:1433 \ | |
mcr.microsoft.com/mssql/server:2017-latest | |
# Elastic Search | |
docker run --rm -d --name elasticsearch \ | |
-e "discovery.type=single-node" \ | |
-p 9200:9200 \ | |
-p 9300:9300 \ | |
docker.elastic.co/elasticsearch/elasticsearch:7.3.0 | |
start http://localhost:9200 | |
# Kibana | |
docker run --rm -d --name kibana \ | |
-p 5601:5601 \ | |
kibana:7.3.0 | |
start http://localhost:5601 | |
# Redis | |
docker run --rm -d --name redis \ | |
-p 6379:6379 \ | |
redis | |
# Redis cli | |
docker run --rm -it \ | |
--network redis-network \ | |
redis redis-cli -h redis | |
# SQS/SNS | |
docker run --rm -d --name aws \ | |
-p 4100:4100 \ | |
pafortin/goaws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment