Project to store personal Docker files with special focus on database instances.
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
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