Skip to content

rob-mosher/docker-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-scripts

Templates for developers to easily create and remove various services within their local development environment, such as postgres and mongodb.

Pre-requisites

  1. Install Docker via https://docs.docker.com/desktop/install/

Usage

  1. Navigate to the sub-folder of the service you wish to create:
cd mongo
  1. Copy .env.example to .env and change values if needed:
cp .env.example .env
  1. Run docker compose. The -d flag runs is a detached-state so that the command-line window can be closed without impacting the service.
docker compose up -d
  1. To stop the container and destroy the data within, run from the same folder:
docker compose down

Mac Users

Mac users may need to install the following tools to interact with the various services:

Redis

To gain access to the Redis CLI:

brew tap ringohub/redis-cli
brew update && brew doctor
brew install redis-cli

Mongo

To gain access to the MongoDB CLI:

brew install mongodb/brew/mongodb-database-tools

Other

The following might be needed for Postgres' psql to work on some systems:

brew install libpq

About

Helpful developer scripts for quickly adding services such as postgres, mysql, mongo, and influx. Spend less time on environment variables.

Resources

Stars

Watchers

Forks

Contributors

Languages