MODX on LNMP (Linux, Nginx, MySQL, PHP7) using Docker.
- Auto installation with cli
- Configured Friendly URLs on NGINX server
- Self-signed SSL Certificate
The whole app is divided into three Containers:
- Nginx is running in
Nginx
Container, which handles requests and makes responses. - PHP or PHP-FPM is put in
PHP-FPM
Container, it retrieves php scripts from host, interprets, executes then responses to Nginx. If necessary, it will connect toMySQL
as well. - MySQL lies in
MySQL
Container,
MODX scripts are located on host, you can edit files directly without rebuilding/restarting whole images/containers.
- MODX 2.7.0-pl
- nginx:1.15.7
- php:7.3.1-fpm
- mariadb:10.1.38-bionic
- Self-signed SSL Certificate
- GD Lib
- PDO MySQL driver
- ImageMagick
Edit ./php-fpm/modx_install.env
before start.
MODX_INSTALL_TYPE=cli
- auto cli installationMODX_INSTALL_TYPE=web
- manual web installation
Edit ./mariadb/credentials.env
before start.
At first, you should have had Docker and Docker Compose dinstalled.
Without building images one by one, you can make use of docker-compose
and simply issue:
$ docker-compose up
Check out your https://<docker-host> and have good development.
Pinguinens [email protected]
MIT