Quick Tools Deployment with Simple Docker Commands

Photo by CHUTTERSNAP on Unsplash

Quick Tools Deployment with Simple Docker Commands

Well, why set up databases (or other tools) on local machines when you can quickly spin one up using Docker in just minutes? Need MySQL or PostgreSQL? I've got you covered.

MySQL

docker run --rm -d \
    -p 3306:3306 \
    -e MYSQL_ROOT_PASSWORD=12345678 \
    mariadb

PostgreSQL

docker run --rm -d \
    -p 5432:5432 \
    -e POSTGRES_PASSWORD=12345678 \
    -e POSTGRES_USER=postgres \
    -e POSTGRES_DB=postgres \
    postgres

MongoDB

docker run --rm -d \
    -p 27017:27017 \
    -e MONGO_INITDB_ROOT_USERNAME=root \
    -e MONGO_INITDB_ROOT_PASSWORD=12345678 \
    mongodb/mongodb-community-server:6

Redis


docker run --rm -d \
    -p 6379:6379 \
    -e ALLOW_EMPTY_PASSWORD=no \
    -e REDIS_PASSWORD=12345678 \
    bitnami/redis

etcd

docker run --rm -d \
    -p 2379:2379 \
    -e ALLOW_NONE_AUTHENTICATION=yes \
    bitnami/etcd

RabbitMQ

docker run --rm -d \
    -p 5672:5672 \
    -p 15672:15672 \
    -e RABBITMQ_DEFAULT_USER=admin \
    -e RABBITMQ_DEFAULT_PASS=12345678 \
    rabbitmq:3-management