Separate data volume for preservation. Accessing mongo with Robomongo requires v0.9.0-rc4 or above.
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.env
|
||||||
|
*.sublime*
|
48
README.md
48
README.md
@ -1,11 +1,57 @@
|
|||||||
README.md
|
README.md
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
Authoring SCORM-compatible training using the [Adapt Authoring](https://github.com/adaptlearning/adapt_authoring) tool.
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
---------------------
|
||||||
|
|
||||||
Do this once:
|
Do this once:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
wait for a moment, then
|
||||||
|
|
||||||
```
|
```
|
||||||
docker-compose -f docker-compose.setup.yml run --rm setup
|
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
|
- adaptdata:/adapt_authoring
|
||||||
external_links:
|
external_links:
|
||||||
- adaptdb
|
- 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}
|
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
|
||||||
# && #node upgrade --Y/n Y
|
upgrade:
|
||||||
|
extends:
|
||||||
|
service: setup
|
||||||
|
command: node upgrade --Y/n Y
|
||||||
|
@ -2,11 +2,16 @@ version: '2'
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
adaptdata:
|
adaptdata:
|
||||||
|
adaptdb:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
container_name: adaptdb
|
container_name: adaptdb
|
||||||
image: mongo
|
image: mongo
|
||||||
|
volumes:
|
||||||
|
- adaptdb:/data/db
|
||||||
|
ports:
|
||||||
|
- 27017:27017
|
||||||
authoring:
|
authoring:
|
||||||
volumes:
|
volumes:
|
||||||
- adaptdata:/adapt_authoring
|
- adaptdata:/adapt_authoring
|
||||||
|
Reference in New Issue
Block a user