Giter VIP home page Giter VIP logo

docker-modx's Introduction

Introduction

MODX on LNMP (Linux, Nginx, MySQL, PHP7) using Docker.

  • Auto installation with cli
  • Configured Friendly URLs on NGINX server
  • Self-signed SSL Certificate

Architecture

architecture

The whole app is divided into three Containers:

  1. Nginx is running in Nginx Container, which handles requests and makes responses.
  2. 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 to MySQL as well.
  3. MySQL lies in MySQL Container,

MODX scripts are located on host, you can edit files directly without rebuilding/restarting whole images/containers.

Contents

  • MODX 2.7.0-pl
  • nginx:1.15.7
  • php:7.3.1-fpm
  • mariadb:10.1.38-bionic
  • Self-signed SSL Certificate

PHP Extensions

  • GD Lib
  • PDO MySQL driver
  • ImageMagick

Configuration MODX

Edit ./php-fpm/modx_install.env before start.

  • MODX_INSTALL_TYPE=cli - auto cli installation
  • MODX_INSTALL_TYPE=web - manual web installation

Configuration MYSQL

Edit ./mariadb/credentials.env before start.

Build and Run

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.

Contributors

Pinguinens [email protected]

License

MIT

docker-modx's People

Contributors

pinguinens avatar

Stargazers

Maliko avatar

docker-modx's Issues

How can I insert data into db after auto install?

Thanks for your docker-modx repository! it helps me a lot.

Now I want to source my mysql dump file after auto install in docker enviroment.
I was successful in command as follow, but I want to run it auto instead of manually..

mysql -u root -h 127.0.0.1 -P 13307 --protocol=tcp -p
password:
use modx;
source my.sql

This is what I've tried

  1. make a directory as 「docker-entrypoint-initdb.d」 in mariadb directory
  2. put my mysql inside the 「docker-entrypoint-initdb.d」 directory.
  3. edit Dockerfile inside mariadb as follow
FROM mariadb:10.1.38-bionic
COPY ./docker-entrypoint-initdb.d/ ./docker-entrypoint-initdb.d/

But it doesn't work..
What should I do so that I can insert my dump date into running container ?

I am looking forward to your reply! Thank you guy !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.