E-Learning Framework
To install and use our service, we use docker to containerize it.
Make sure you have supabase setup and created a ".env" file with the necessary environment variables. You can use the ".env.example" file as a reference.
We recommed to download the latest stable release and not use the main branch for your install!
To Build the current Version use the command:
docker compose build
This builds the container under the name "Elfra" with the current version as "tag".
To run the container now use this command:
docker compose up*This will start the latest Version used in docker compose
docker run -d \ --name elfra-app \ -p 3000:3000 \ -v ~/elfra/courses:/app/content/courses \ -v ~/elfra/config:/app/customconfig \ -e NODE_ENV=production \ --restart unless-stopped \ elfra:1.0.0Replace "x.x.x" with the version number of the tag you are installing. E.g.: 1.0.0
🚩 If you use this command you have to usedocker stop <container_id_or_name>to stop it
Now you can stop/end the container by using
docker compose stopKeeps files and mounted volumes
docker compose down!! If you use "down" the container will also get removed !!
To Build the current Version use the command:
docker compose up --build
This builds the container under the name "Elfra" with the current version as "tag" and also starts it.
Now you can stop/end the container by using
docker compose stopKeeps files and mounted volumes
docker compose down!! If you use "down" the container will also get removed !!
Its importand to know that you will get 2 folder bind into the docker container:
📂: elfra_courses
📂: elfra_config
This folder is generated in your Home directory (~/elfra/courses) on first start of the container. Here you can manage your WBTs and edit them. For now you have to make them by hand (Tutorial). Later they will be generated by the Elfra Config Tool
This folder is generated in your Home directory (~/elfra/config) on first start of the container. This folder is home to your config.ts file wich is beeing created and edited by the Elfra Config Tool
Look at the Nuxt documentation to learn more.