Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 944 Bytes

README.md

File metadata and controls

55 lines (37 loc) · 944 Bytes

Docker files

Project to store personal Docker files with special focus on database instances.

TL;DR

To use any instance just go into specific folder, fill .env file with your specifications following the .env.example file located on each folder and then execute the following command:

docker compose up -d

Usage example

To use MongoDB instance:

# Go to MongoDB folder
cd db/mongodb

# Copy .env.example file into a .env file
cp .env.example .env

# Fill .env variables
vim .env

# Create the container
docker compose up -d

Then, inside mongodb folder, run any of the following commands:

  • To stop started instance:
docker compose stop
  • To start stopped instance:
docker compose start
  • To remove instance: (each folder has instructions to remove his instance)
docker compose down

# If you want to remove persisted data
# docker compose down --volumes