Sign inSign up

sproutlabs/learninglocker

By sproutlabs

•Updated over 9 years ago

Learning Locker xAPI store as a Docker container

Image
5

100K+

sproutlabs/learninglocker repository overview

⁠Learning Locker LRS Docker container

This is fork of hongymagic/learninglocker⁠ the main modifications are around removing the inbuilt SSL support (so you can use it behind a LB) and also the mongoDB user setup

This is a HTTP application-only container for Learning Locker⁠. As such, link to a running mongoDB container or external mongoDB host is required.

If you are running it behind a load balancer set the LOAD_BALANCER env variable to something otherwise your assets won't get the right path

⁠Example usage
  1. Create a mongoDB instance (example using docker container). mongodb⁠

    docker run -d --name db -p 27017:27017 -p 28017:28017  mongodb
    
  2. Create learning locker instance:

    docker run \
    	-d \
    	--name web \
    	--link db:mongo \
    	-p 80:80 \
    	sproutlabs/learninglocker:latest
    

    This will run Learning Locker web application using the above mongoDB instance.

⁠Environment variables

Users of this container are strongly encourage to change all non-optional environment variables when running this container.

⁠Required

There are a number of defaults for these in docker-compose.yml as well

  • LEARNINGLOCKER_DB_USER: If authentication is enabled on mongo, the user to use
  • LEARNINGLOCKER_DB_PASSWORD: If authentication is enabled on mongo, the password to use
  • LEARNINGLOCKER_DB_NAME: Name of the database to create for learning locker. Defaults to learninglocker
  • APP_URL: FQDN of the final URL, if missing defaults to $HOSTNAME
  • APP_SECRET_KEY: Encryption key⁠ used by learning locker. Defaults to CHANGEME12345678
  • SMTP_SERVER, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, EMAIL_FROM_NAME, EMAIL_FROM_ADDRESS: Self explanatory, see configuration page⁠ for more details
⁠Optional
  • LEARNINGLOCKER_DB_HOST: (optional) If not linking to another docker container, hostname of the mongoDB server
  • MONGO_WAIT_TIMEOUT: (optional) Time to wait before mongo container becomes live. Defaults to 10 seconds
  • LEARNINGLOCKER_DB_REPLICA_SET: If you are using a mongo replica set the name here and change LEARNINGLOCKER_DB_HOST to be like 'ip-10-0-1-200.ap-southeast-2.compute.internal','ip-10-0-1-201.ap-southeast-2.compute.internal','ip-10-0-1-202.ap-southeast-2.compute.internal' (the quotes are required, hostnames that match the replica set setup are also required http://php.net/manual/en/mongo.connecting.rs.php⁠)

Tag summary

Content type

Image

Digest

Size

132.1 MB

Last updated

over 9 years ago

docker pull sproutlabs/learninglocker