This is base setup for Zend Framework 1, 2, 3 application. Although it can be use with any php application which has web directory with name "public"
Main idea is to provide simple LAMP,WAMP,XAMPP replacement for Zend Framework development
Features:
- HTTPS Enabled (Self signed signature)
- MailHog for SMTP testing for Zend/Mail or Zend_Mail
- PhpMyAdmin
- Drop in database support .
How to Use :
-
Copy paste all files inside this directory . So that your project "public" directory is directly under this (zf-docker) directory .
-
Take a dump of your existing database and replace db/test.sql with your sql file
-
Update database details inside docker-compose.yml by updating following variables
MYSQL_DATABASE: "test" MYSQL_USER: "test" MYSQL_PASSWORD: "test"
-
Run docker-compose up -d
-
You can now access your ZF application under
And can access phpmyadmin at
Advance :
-
To configure Zend Mail use following SMTP settings
$config = ['port'=>1025,'auth'=>'login']; $transport = new Zend_Mail_Transport_Smtp('mailhog', $config);
And then you can access all outgoing emails at