docker sql

Docker: MySQL Download docker pull mysql/mysql-server:latest Create Option 1 – docker run docker run -d \ –name mysql-itsmetommy \ -p 3306:3306 \ –env=”MYSQL_ROOT_PASSWORD=password” \ mysql/mysql-server:latest Option 2 – docker-compose cat <<EOF > docker-compose.yml version: ‘3.8’ services: db: image: mysql:latest restart: always environment: MYSQL_DATABASE: ‘db’ # Optional user account MYSQL_USER: ‘tommy’ # Password for optional user account […]


docker-compose redis-cluster

Clone git repository Updated: June 25, 2020 Clone the repo. cd into repo. cd docker-redis-cluster Build and start all containers docker-compose up –build -d Example docker-compose up –build -d Creating network “docker-redis-cluster_redisnet” with driver “bridge” Building redis-1 Step 1/7 : FROM redis:latest —> 63130206b0fa Step 2/7 : MAINTAINER Tommy Elmesewdy —> Using cache […]

docker Linux

docker-compose redis

Clone git repository Pick your redis version and download the git repository. redis version 4 My example uses 4.0.2-alpine. redis version 2-3 My example uses 2.6.17. Build and start all containers This will build all the sentinel images, then start all containers in detached mode. docker-compose up –build -d Verify that the master is […]