kobudnik / docker-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Shell 100.0%