2017-04-21 13:07:45 +03:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
|
|
|
|
- MYSQL_DATABASE=${DB_NAME}
|
|
|
|
- MYSQL_USER=${DB_USERNAME}
|
|
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- easy-appointments-data:/var/lib/mysql
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
|
|
|
|
application:
|
|
|
|
image: easyappointments
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
environment:
|
|
|
|
- DB_HOST=database:3306
|
2017-04-23 14:22:09 +03:00
|
|
|
env_file:
|
|
|
|
- .env
|
2017-04-21 13:07:45 +03:00
|
|
|
volumes:
|
2017-05-21 14:53:14 +03:00
|
|
|
- easy-appointments-storage:/var/www/html/src/storage
|
2017-04-21 13:07:45 +03:00
|
|
|
restart: always
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
easy-appointments-data:
|
2017-04-23 14:22:09 +03:00
|
|
|
easy-appointments-storage:
|