mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-23 07:03:26 +03:00
e0cdb4c048
Fixing connection issues to MySQL 8.0.4.
32 lines
701 B
YAML
32 lines
701 B
YAML
version: '2'
|
|
services:
|
|
database:
|
|
image: mysql
|
|
command: mysqld --default-authentication-plugin=mysql_native_password
|
|
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:
|