Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iambasantarai/dockerdbs

Docker compose for databases that i use.
https://github.com/iambasantarai/dockerdbs

dockercompose mysql postgresql

Last synced: 3 months ago
JSON representation

Docker compose for databases that i use.

Awesome Lists containing this project

README

        

### mysql

Run the following command to start the MySQL container:

```bash
docker-compose -f mysql.yml up -d

```

### postgres

Run the following command to start the PostgreSQL container:

```bash
docker-compose -f postgresql.yml up -d

```

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

```bash
docker exec -it pgdb bash
su postgres
psql
```

### redis

Run the following command to start the Redis container:

```bash
docker-compose -f redis.yml up -d
```

Connect to redis using `redis-cli`

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