Separate data volume for preservation. Accessing mongo with Robomongo requires v0.9.0-rc4 or above.
This commit is contained in:
parent
fbd14b5683
commit
401c9f0d23
|
@ -0,0 +1,2 @@
|
|||
.env
|
||||
*.sublime*
|
48
README.md
48
README.md
|
@ -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]
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue