Docker Setup Tutorial
Install Git (Windows)
https://git-scm.com/download/win
Install Docker Desktop
https://www.docker.com/products/docker-desktop/
-
Fork doubtfire-deploy:development, doubtfire-api:development, and doubtfire-web:development from https://github.com/doubtfire-lms
-
Clone your doubtfire-deploy. Make sure to fetch submodules to get the subprojects.
Terminal window git clone -b development --recurse-submodules https://github.com/[your_github_username]/doubtfire-deploy -
Change directory to doubtfire-deploy by using: cd doubtfire-deploy. Open a Terminal that supports sh scripts (on Windows, you will need WSL, Msys2, or Cygwin). Run the following command to set your fork as the remote.
Terminal window bash ./change_remotes.sh -
Change into the development directory and use Docker Compose to setup the database.
Terminal window cd developmentdocker compose up -ddocker compose run --rm doubtfire-api bash -c "bundle exec rails db:environment:set RAILS_ENV=development && bundle exec rake db:populate" -
Change into the development directory and use Docker Compose to setup the database. Run in the development folder
Terminal window docker compose up -d -
Open a web browser and navigate to: http://localhost:4200