A docker container for the e-learning platform Forma LMS based on the official php:5.6-apache image.
In order to run this container you'll need:
Docker installed:
A compatible SQL database:
- MySQL 5.0 or higher or MariaDB 5.5 or higher
- UTF8 character set
- MySQL strict mode disabled
The web page runs on the default http port
docker run -p 80:80 razgultraka/formalmsThen you can go to http://localhost/formalms/install or http://host-ip/formalms/install to complete the installation.
This will install both Forma LMS and a MySQL database You can use the forma.cnf file in this repository to set both character set to utf8 and disable strict mode at creation time, otherwise you'll have to do it manually.
version: '3'
services:
formalms:
image: razgultraka/formalms:latest
restart: always
ports:
- 80:80
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: formalms
MYSQL_USER: formalms
MYSQL_PASSWORD: formalms
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
# - /path/to/config/directory:/etc/mysql/conf.d #edit and uncomment this line if you're using the .cnf file
volumes:
db:As with docker run got to the web page http://localhost/formalms/install or http://host-ip/formalms/install to complete the installation.
With this compose file you can just set db as the database host during installation and formalms as database name, user and password.
The database is not exposed outside of the stack, but you can always change the database parameters to be on the safer side.
- Forma LMS v2.4.5
- PHP v5.6
- MySQL v5.7
- Lorenzo Dallagà - Initial work - RazgulTraka