A database training-environment for the restart-course at codingschule.de
You need a working docker setup. You can find all you need here.
It's good idea to have git installed on your system. You can find all you need here
Here are the steps you can follow to download the code and run the docker compose file:
Use your terminal to navigate to the directory you want to clone the repository and use the git clone command to clone the repository
# clone the repository
git clone https://github.com/Codingschule/restart-docker/tree/mainCd into the directory, build and run your environment:
# first you need to rename tmp-env to .env
cp -a tmp-env .env
# (you can change passwords in the .env file if you like)
# build the environment
docker compose build
# run the environment
docker compose up -dHave look to your docker.desktop. The GUI for your database will be on http://localhost:8081. You can find the passwords in the .env file. You can login as the user "root".
If you allready have a working environment and you need to re-create it you can do the following.
Be carful! the build-command with the option -v will recreate your named volume. Remember what you've learnd about having a backup ;-)
So if you have created your own database create a dump before you move on.
# shutdown your environment and delete the volume
docker compose down -v
# rebuild your environment
docker compose build
# ...and run it again
docker compose up -d