Nothing Special   »   [go: up one dir, main page]

Skip to content

iambasantarai/dockerDBs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql

Run the following command to start the MySQL container:

docker-compose -f mysql.yml up -d

postgres

Run the following command to start the PostgreSQL container:

docker-compose -f postgresql.yml up -d

To access the PostgreSQL container and enter the PostgreSQL command-line interface, use the following commands:

docker exec -it pgdb bash
su postgres
psql

redis

Run the following command to start the Redis container:

docker-compose -f redis.yml up -d

Connect to redis using redis-cli

redis-cli -h localhost -p 6379 -a root