Skip to content

ctu-geoforall-lab/sqltutor-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQLtutor Docker Deployment

Deploy SQLtutor using Docker.

Requirements

Deploy

  1. Create env file:
POSTGRES_PASSWORD=20sqltutor21
SQLTUTOR_DATABASE=sqltutor
SQLTUTOR_WWW_USER=sqlquiz
SQLTUTOR_PASSWORD=sqlkrok
SQLTUTOR_WWW_EXEC=sqlexec
SQLTUTOR_PASSEXEC=sqlkrok
  1. Deyploy by docker compose:
docker compose up
  1. Open http://localhost:8085

Re-deploy from scratch

Stop services:

docker compose down

Remove DB volume:

docker volume rm sqltutor-docker_db_data

Notes

Access DB:

docker compose exec db psql -U postgres sqltutor

Show questions and answers per session:

SELECT q.question,s.answer,s.correct
FROM sqltutor.sessions_questions AS s
JOIN sqltutor.questions AS q
USING (problem_id)
WHERE session_id = <session_id>;

Releases

No releases published

Packages

No packages published