Use version for the MySQL image to avoid issues with caching_sha2_password (#533)

This commit is contained in:
Alex Tselegidis 2020-03-10 20:42:08 +01:00
parent 673ec82aa3
commit bb4e11c38e
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
version: '2' version: '2'
services: services:
database: database:
image: mysql image: mysql:5.7
environment: environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD} - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_NAME} - MYSQL_DATABASE=${DB_NAME}

View file

@ -1,7 +1,7 @@
version: '2' version: '2'
services: services:
database: database:
image: mysql image: mysql:5.7
environment: environment:
- MYSQL_DATABASE=${DB_NAME} - MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USERNAME} - MYSQL_USER=${DB_USERNAME}