iflrandevu/docker-compose.prod.yml
Joachim Wallsin e0cdb4c048 closes alextselegidis/easyappointments#557
Fixing connection issues to MySQL 8.0.4.
2018-11-06 09:43:47 +01:00

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: