From 3afcc631df7f727d5cd9226cd9c30d01287f42e7 Mon Sep 17 00:00:00 2001 From: Gary Ritchie Date: Thu, 6 Oct 2016 07:02:12 -0400 Subject: [PATCH] Getting started on the docker run commands alternative. --- README.md | 54 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 1291d70..83b0788 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,21 @@ README.md Authoring SCORM-compatible training using the [Adapt Authoring](https://github.com/adaptlearning/adapt_authoring) tool. -Getting Started ---------------------- +Getting Started - docker-compose +--------------------------------- + +### Config + +Add an `.env` file with the following: + +``` +ADMIN_EMAIL=admin +ADMIN_PASSWORD=password +``` + +This is read during "setup." + +### Setup Do this once: @@ -21,37 +34,36 @@ docker-compose -f docker-compose.setup.yml run --rm setup Subsequent runnings: `docker-compose up -d`. -Config ----------- -Add an `.env` file with the following: +### Clean Up -``` -ADMIN_EMAIL=admin -ADMIN_PASSWORD=password -``` - -This is read during "setup." - -Clean Up ------------ - -### To remove containers +#### To remove containers ``` docker-compose down ``` -### To remove data (courses) +#### To remove data (courses) -This will delete your hard work. Are you sure? +This will delete your hard work. ``` docker volume rm dockeradaptauthoring_adaptdb docker volume rm dockeradaptauthoring_adaptdata ``` -Backup ------------- +### Backup -[database and course content] \ No newline at end of file +[database and course content] + +Getting Started - docker run +--------------------------------- + +Setup +----------- + +### Volumes + +`docker volume create --name dockeradaptauthoring_adaptdata` + +### Services \ No newline at end of file