2017-04-21 13:07:45 +03:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=veryhardpassword
|
|
|
|
- MYSQL_DATABASE=easyapp
|
|
|
|
- MYSQL_USER=easyapp
|
|
|
|
- MYSQL_PASSWORD=veryhardpassword
|
|
|
|
|
|
|
|
application:
|
|
|
|
image: easyappointments
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
volumes:
|
2017-05-21 14:53:14 +03:00
|
|
|
- ./src:/var/www/html
|
2017-04-21 13:07:45 +03:00
|
|
|
command: dev
|
|
|
|
ports:
|
|
|
|
- ${APP_HOST}:80:80
|
|
|
|
environment:
|
|
|
|
- DB_HOST=database:3306
|
|
|
|
- APP_URL=localhost
|
2017-05-21 14:53:14 +03:00
|
|
|
depends_on:
|
|
|
|
- database
|
2017-04-23 14:22:09 +03:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
restart: always
|