Docker Multikey Modx Template, powered by NikolasMelui and RinatDav for Multikey Studio, is a powerfull orchestration platform of docker and docker-compose files includes nginx, mysql, php, gitify and multikey-modx-template.
- You need to install Docker and Docker-compose first.
- ${projectname} - your projectname
You can think this is useless template with old technologies and MODX is bad and dead. Ok.
Go and fu** yourself. J. Stat.
Create a new directory on your local mashine, cd into it, clone this repo and then orchestrate the composition (install all dependencies):
$ mkdir ${projectname} && cd ${projectname}
$ git clone https://github.com/NikolasMelui/docker-multikey-modx-template.git ./
$ docker-compose up -d
Once everything is installed, use bash to enter the application container named ${projectname}_php_1:
$ docker exec -it ${projectname}_php_1 bash
Now from application container use this commands to clone multikey-modx-template into it and install MODX:
$ git clone https://github.com/NikolasMelui/multikey-modx-template.git ./
$ ../../Gitify/Gitify modx:install
Gitify will ask you for details to install (all details is in docker-compose.yml file):
- Database Host [localhost]: db
- Database Name [dockermultikeymodxtemplate]: modx
- Database User [root]: root
- Database Password: password
- Database Prefix [modx_]:
- Hostname []:
- Base URL [/]:
- Manager Language [en]: ru
- Manager User [tmp_admin]: admin
- Manager User Password [generated]: password
- Manager Email:
You can try to install all packages... but it is not a great idea, because this function is unstable.
$ ../../Gitify/Gitify package:install --all
Now build the project from static files:
$ ../../Gitify/Gitify build --force
Use this sh script to add necessary rules for files and folders:
$ sh rules.sh
And now you have a complete template.
Use npm to install frontend dependencies and run browserSync and watchers to realy 'reactive' development:
$ npm i
$ npm run dev
... and this command if needed to create a minified frontend files:
$ npm run prod
Know more about pure multikey-modx-template.
Want to contribute? Great! This is an opensource project. All contributions are welcome. Make a fork and go on! __
Todos | Status |
---|---|
es6 | - |
Patterns | - |
Webpack | - |
ESLint | - |
Mocha | - |
CI\CD | - |
SFTP\rsync | - |
Docker | https://github.com/NikolasMelui/docker-multikey-modx-template |
Kubernates | - |
MIT License
Copyright (c) 2018 NikolasMelui
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
From developers 2 developers. NikolasMelui RinatDav