Skip to content

Codingschule/restart-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

restart-docker

A database training-environment for the restart-course at codingschule.de

Installation

Docker Installation

You need a working docker setup. You can find all you need here.

Git Installation

It's good idea to have git installed on your system. You can find all you need here

Run the Environment

Here are the steps you can follow to download the code and run the docker compose file:

clone the repository

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/main

Cd 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 -d

Have 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".

Re-Create your environment

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published