Skip to content

benjiec/qbreader-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qbreader/docker

Creates a Docker setup to run qbreader locally, for development purposes.

Getting Started

Setup - You only need to do this once

  1. Clone the repository and go to working directory e.g. git clone https://github.com/benjiec/qbreader-docker && cd qbreader-docker

  2. Create qbreader/website. e.g. git clone https://github.com/qbreader/website

    If you are doing your own development, you will want to clone from the appropriate forked repo.

  3. Clone qbreader/database. e.g. git clone https://github.com/qbreader/database

    If you are doing your own development, you will want to clone from the appropriate forked repo.

  4. Download a backup copy of the database and put that in dump/qbreader. This directory should contain the various .bson files. E.g. visit https://www.qbreader.org/db/backups, visit the backup Google Drive, download one of the timestamped directories as a zip file, and unzip and copy the .bson files to dump/qbreader.

  5. Build docker images and start docker instances using docker compose up -d --build

  6. Populate local MongoDB server with backup BACKUP_DIR=/<full-path-to-parent-dir>/qbreader-docker/dump ./scripts/setup-db.sh

Running

  1. docker-compose up -d

  2. Visit localhost:3000 from a browser

The following commands are handy.

Rebuild assets (e.g. scss)

docker-compose exec website npm run build

Or rebuild whole image for website if dependencies have changed

docker-compose build
docker-compose up -d

Restart qbreader website

docker-compose restart website

Monitor logs

docker-compose logs -f
docker-compose logs -f website

About

Docker setup for qbreader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages