Separate data volume for preservation. Accessing mongo with Robomongo requires v0.9.0-rc4 or above.

This commit is contained in:
Gary Ritchie 2016-08-31 16:18:52 -04:00
parent fbd14b5683
commit 401c9f0d23
4 changed files with 59 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
*.sublime*

View File

@ -1,11 +1,57 @@
README.md
=================
Authoring SCORM-compatible training using the [Adapt Authoring](https://github.com/adaptlearning/adapt_authoring) tool.
Getting Started
---------------------
Do this once:
```
docker-compose up -d
```
wait for a moment, then
```
docker-compose -f docker-compose.setup.yml run --rm setup
```
Then `docker-compose up -d`.
Subsequent runnings: `docker-compose up -d`.
Config
----------
Add an `.env` file with the following:
```
ADMIN_EMAIL=admin
ADMIN_PASSWORD=password
```
This is read during "setup."
Clean Up
-----------
### To remove containers
```
docker-compose down
```
### To remove data (courses)
This will delete your hard work. Are you sure?
```
docker volume rm dockeradaptauthoring_adaptdb
docker volume rm dockeradaptauthoring_adaptdata
```
Backup
------------
[database and course content]

View File

@ -18,5 +18,8 @@ services:
- adaptdata:/adapt_authoring
external_links:
- adaptdb
command: node install --install Y --serverPort 5000 --serverName localhost --dbHost adaptdb --dbName adapt-tenant-master --dbPort 27017 --dataRoot data --sessionSecret your-session-secret --useffmpeg Y --smtpService dummy --smtpUsername smtpUser --smtpPassword smtpPass --fromAddress you@example.com --name master --displayName Master --email ${ADMIN_EMAIL} --password ${ADMIN_PASSWORD}
# && #node upgrade --Y/n Y
command: node install --install Y --serverPort 5000 --serverName localhost --dbHost adaptdb --dbName adapt-tenant-master --dbPort 27017 --dataRoot data --sessionSecret your-session-secret --useffmpeg Y --smtpService dummy --smtpUsername smtpUser --smtpPassword smtpPass --fromAddress you@example.com --name master --displayName Master --email ${ADMIN_EMAIL} --password ${ADMIN_PASSWORD} # && node upgrade --Y/n Y
upgrade:
extends:
service: setup
command: node upgrade --Y/n Y

View File

@ -2,11 +2,16 @@ version: '2'
volumes:
adaptdata:
adaptdb:
services:
db:
container_name: adaptdb
image: mongo
volumes:
- adaptdb:/data/db
ports:
- 27017:27017
authoring:
volumes:
- adaptdata:/adapt_authoring