2017-04-21 13:07:45 +03:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: mysql
|
2018-11-06 11:43:47 +03:00
|
|
|
command: mysqld --default-authentication-plugin=mysql_native_password
|
2017-04-21 13:07:45 +03:00
|
|
|
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
|