mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 01:52:22 +03:00
31 lines
627 B
YAML
31 lines
627 B
YAML
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
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- easy-appointments-storage:/var/www/html/src/storage
|
|
restart: always
|
|
|
|
volumes:
|
|
easy-appointments-data:
|
|
easy-appointments-storage:
|