monelytics is a household account book web service. This is an application that has been made in Laravel5.
- PHP 7.0 (with OPcache)
- Laravel 5.3
- Nginx 1.1
- MySQL 5.7
- Redis 3.2
Application is consists of the following container.
- monelytics_data
- monelytics_web
- monelytics_php
- monelytics_composer
- monelytics_artisan
- monelytics_phpunit
- monelytics_db
- monelytics_redis
Setup the containers.
cp etc/docker/.env.sample etc/docker/.env
# please change configuration
cat etc/docker/.env
cp .env.sample .env
# please change configuration
cat .env
docker-compose build
docker-compose run --rm composer install
docker-compose up -d
docker-compose run --rm artisan migrate
Open the http://localhost:8080/ in your browser.
docker-compose stop
docker-compose run --rm composer [COMMAND]
# e.g. Run install of package
docker-compose run --rm composer install
docker-compose run --rm artisan [COMMAND]
# e.g. Run migration of DB
docker-compose run --rm artisan migrate
# Run all tests
docker-compose run --rm phpunit
# e.g. Specify test class
docker-compose run --rm phpunit tests/Controllers/ContactControllerTest.php