Giter VIP home page Giter VIP logo

dev-services's Introduction

Development services

Included services

  1. Postgis
  2. Redis

Setup

Docker and Docker Compose are required in order to run the setup.

  • Clone the repo to your end by run git clone [email protected]:khaile/dev-services.git
  • Redirect to the cloned folder by run cd dev-services
  • Run command make start to start the services
  • Check services status by run docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
e3d3088b9200        redis               "docker-entrypoint.s…"   2 hours ago         Up 2 hours          0.0.0.0:6379->6379/tcp   redis
0f4c6adf3bd4        kartoza/postgis     "docker-entrypoint.s…"   3 hours ago         Up 3 hours          0.0.0.0:5432->5432/tcp   postgres
  • To create a new DB simply run: make create_db DB=<db_name>
  • To backup an DB in the container: make backup_db DB=<db_name>, a new dump file <db_name>.sql will be generated.
  • To restore/clone an DB in the container: make restore_db DB=<db_name> dump_file=<path/to/dump/file.sql>

dev-services's People

Contributors

khaile 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.