Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/iambasantarai/dockerdbs
- Owner: iambasantarai
- License: mit
- Created: 2023-12-19T06:09:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-20T08:02:19.000Z (4 months ago)
- Last Synced: 2024-10-11T12:22:52.598Z (3 months ago)
- Topics: dockercompose, mysql, postgresql
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```