-
Notifications
You must be signed in to change notification settings - Fork 1
Database setup
This project requires Docker 1.13.1 or newer, and docker-compose 1.10.0 or newer for hosting the database.
You can install Docker and docker-compose using your password manager, e.g.
sudo apt install docker.io docker-compose.
Note that you will need root rights for everything Docker. It is
not recommended to add yourself to the docker group.
On macOS, it's easiest to install Docker using Homebrew Cask:
brew cask install docker. This will also install docker-compose.
You can get Docker for Windows from the Docker store
Currently, you only need to choose a password for the database by creating a
.env file with the following contents:
DATABASE_PASSWORD=...Just make up a strong, random password here.
You can change it by opening a mysql shell with
docker-compose run database mysql cte -u cte -pThen, enter the old password and execute the following command:
ALTER USER cte IDENTIFIED BY 'new_random_password';Close the shell with \q and edit .env to the new password.
Open terminal in the server folder and run docker-compose up -d --build, everything should now be ready for running.
Open a terminal in the server folder, run docker-compose up -d, the database should now be available through adminer at localhost:8080
In order to upgrade or downgrade the database versions, you can use the alembic commands. To make sure your database is at the most recent revision, first run the command
docker-compose run migration alembic upgrade headTo downgrade 1 revision use
docker-compose run migration alembic downgrade -1And to upgrade 1 revision use
docker-compose run migration alembic upgrade 1- Home
- User Guide
-
Developer Documentation
- Client-Server Connection
- Client
- Server
- Motivation & Limitations