mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-23 05:38:23 +00:00
e357e763d7
Docker stack now includes a studio, smtp server, rabbitmq container and an LMS worker. There are still a couple things to do, though. (see TODOs)
50 lines
1.1 KiB
Markdown
50 lines
1.1 KiB
Markdown
# [WIP] Docker-compose Open edX production stack
|
|
|
|
This is a work-in-progress.
|
|
|
|
The production stack is sufficient for a minimal production deployment of Open edX.
|
|
|
|
## Lauch a production stack
|
|
|
|
Prepare build:
|
|
|
|
make directories
|
|
|
|
Build and run:
|
|
|
|
docker-compose build # go get a coffee
|
|
docker-compose up
|
|
|
|
The LMS will be reachable at [http://openedxdemo.overhang.io](http://openedxdemo.overhang.io).
|
|
|
|
The CMS will be reachable at [http://studio.openedxdemo.overhang.io](http://studio.openedxdemo.overhang.io).
|
|
|
|
For local development, you should point to http://localhost:8800.
|
|
|
|
On the first run you will need to migrate the database and collect static assets:
|
|
|
|
make migrate
|
|
make assets
|
|
|
|
To daemonize:
|
|
|
|
docker-compose up -d
|
|
|
|
## Development
|
|
|
|
Open a bash in the lms:
|
|
|
|
docker-compose run lms bash
|
|
|
|
Open a python shell in the lms or the cms:
|
|
|
|
make lms-shell
|
|
make cms-shell
|
|
|
|
## TODO
|
|
|
|
- Make sure that secret keys are not shared with the entire world
|
|
- Add arguments to set domain name, platform name, etc.
|
|
- Add documentation on host Nginx
|
|
- Better readme
|