commands to setup local docker env for development
Feel free to clone and make any changes if you need a quick dev env locally with Docker with a set of tools this is an easy way to get started..
- mysql
- localhost:3306
- user|user123
- postgres
- localhost:5432
- dbuser|Passw0rd2
- pgadmin
- http://localhost:5050/
- admin@email.com|Passw0rd1
- Add Server
- host.docker.internal
- dbuser|Passw0rd2
- mongodb
- mongodb://localhost:27017
- influxdb
- eventstoredb
- rabbitmq
- docker exec -it rabbitmq bin/bash
- rabbitmqctl add_user admin admin123
- rabbitmqctl set_user_tags admin administrator
- rabbitmqctl set_permissions -p / admin "." "." ".*"
- http://localhost:15672/
- redis
- datagrip : https://plugins.jetbrains.com/plugin/12820-redis/versions
- eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
- or https://github.com/qishibo/AnotherRedisDesktopManager
- zipkin
- prometheus
- grafana
- http://localhost:3000/login
- admin|grafana
- ElasticSearch 3 nodes
- https://localhost:9200/
- elastic|elastic
- Kabana
- http://localhost:9092/
- elastic|elastic
- Logstash
- couchdb
- http://localhost:5984/
- admin|couchdb
- UI http://localhost:5984/_utils/
- kafka 3 nodes
- 127.0.0.1:9092,127.0.0.1:9093,127.0.0.1:9094
- kafdrop
- kafka-ui
Create docker-compose
docker-compose -f .\docker-compose.yml upIf using Linux:
docker-compose -f ./docker-compose.yml upTaredown works on both OS:
docker-compose down -vextra commands:
docker --versionOR
docker-compose --versionOR
docker ps -anote: for ES you will have to do a few steps
Gets the list of run apps
wsl -l -vTo Update wsl
wsl --updateshutdown wsl
wsl --shutdownRestart docker desktop to take affect
To Install GUI tool for linux on windows
developers linux of choice
wsl --install -d DebianChange the sysctl variable
wsl -d docker-desktopTo set a variable this is needed for ES as it will give an error
ysctl -w vm.max_map_count=262144To verify
sysctl vm.max_map_countI did not add MS SQL to docker-compose as I like to use that locally installed better performance.
If someone else needs it, you can add below to docker-compose.yml:
sqlserver:
container_name: sqlserver
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- SA_PASSWORD=${MSSQL_PASSWORD}
- ACCEPT_EULA=Y
ports:
- 1433:1433