Developing with docker
WARNING: Do not use the docker server in a production environment.
General
- PHP webserver with xdebug
- MySQL database
- Mailhog
- All requirements are preinstalled.
Installation
Download
git clone https://github.com/Simple-Home/Simple-Home.git simplehome
Go inside project directory
cd simplehome
Run container
docker-compose up
Go inside container
docker-compose exec -u application app /bin/bash
Install composer and npm packages
composer install --dev
npm install
Create database and open SimpleHome Webinterface, follow installation steps
Webserver
Document root: /app
Catch mails with mailhog
Example config
MAIL_MAILER=smtp
MAIL_HOST=173.20.0.4
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=info@yoursDomain.cz
MAIL_FROM_NAME="${APP_NAME}"
Database configuration
DB_CONNECTION=mysql
DB_HOST=173.20.0.3
DB_PORT=3306
DB_DATABASE=simplehome
DB_USERNAME=root
DB_PASSWORD=simplehome
Debug
Change .env variables to
APP_ENV=local
APP_DEBUG=true
xDebug
