Re-organise mysql scripts so the app runs without root access

It works better that way with test containers and in k8s.
This commit is contained in:
Dave Syer 2020-01-03 05:29:11 -05:00
parent f9424b548a
commit 5d57e0d5e2
5 changed files with 17 additions and 15 deletions

View file

@ -3,7 +3,10 @@ mysql:
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=petclinic
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_USER=petclinic
- MYSQL_PASSWORD=petclinic
- MYSQL_DATABASE=petclinic
volumes:
- "./conf.d:/etc/mysql/conf.d:ro"