Coder Social home page Coder Social logo

docker-dbs's Introduction

Docker Compose files for databases

If you think like me, you probably also don't want to clutter your local databases with unnecessary data entries, just for testing new technologies.

I much prefer to throw things in a dockerized database volume and delete it afterwards when testing a new ORM for example.

In this repo, you will find some docker-compose.yaml files that will help you setup a dockerized database (if you plan to use these databases in production, don't. They're intended to be used for testing purposes)

Usage

First clone the repo locally:

git clone [email protected]:DerTimonius/docker-dbs.git

Then, decide what database you want and use the command provided in each section. You can of course change the names of the databases, the passwords, users and ports. If you change them, keep in mind that the connection strings will change accordingly.

Postgres

docker-compose -f docker-postgres.yaml up -d

The connection string of this database will be postgresql://user:password@localhost:5432/db

MySQL

docker-compose -f docker-mysql.yaml up -d

The connection string of this database will be mysql://user:password@localhost:3306/db

MongoDB

docker-compose -f docker-mongodb.yaml up -d

The connection string of this database will be mongodb://admin:adminpassword@localhost:27017/

docker-dbs's People

Contributors

dertimonius avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.