MacOS:
Install Docker, Docker-compose and Docker-sync.
Windows:
Install Docker, Docker-compose and Docker-sync.
Linux:
Install Docker and Docker-compose.
Execute in your terminal, change the MYCAKE3 to use the name of your project:
curl -s https://raw.githubusercontent.com/viniciusbig/cakephp-docker/master/init | bash -s MYCAKE3 clone
If you want to install a fresh Cakephp 3, use like that:
cd MYCAKE3
./shell
rm index.php
install-cake
You can specify a subfolder to install Cake, just add a new parameter (e.g. install-cake my_app
).
This repo uses a pre-compiled machine hosted in Docker Hub. But you can easly make your changes in Dockerfile
and docker-compose.yml
to compile a different version of this image.
You can customize port numbers and database credentials, editing
.env
file.
Don't forget to change
config\app.php
with these database credentials.
Database host is defined as
db
. localhost will not work.
Enjoy your new panels!
Web server: http://localhost/
PHPMyAdmin: http://localhost:8080
Local emails: http://localhost:8025
Commands | Description | Options & Examples |
---|---|---|
./init |
If you didn't use the CURL setup command above, please use this command changing the name of the project. | ./init MYCAKE3 |
./start |
Start your container manually. Tha init command call this command internally. |
|
./stop |
Stop your project containers | |
./kill |
Stops containers and removes containers, networks, volumes, and images created to the specific project | |
./shell |
Access your container | |
./cake |
Use the Cakephp Shell | |
./composer |
Use Composer commands | ./composer update |
./xdebug |
Enable / Disable the XDebug |
This repo was strongly inspired on Clean Docker for Magento 2 by Rafael Corrêa Gomes.
MIT © 2018 Vinicius Arantes.
chown -R www-data:www-data /var/www/wordpress chown -R www-data:www-data /var/www/html