mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-24 19:32:48 +00:00
Update docker-compose.yml to version 2.2
The current docker-compose.yml is still in version 1, which is deprecated: https://docs.docker.com/compose/compose-file/compose-versioning/ So if you try to run `docker-compose up` with a recent version of docker-compose, the following error occurs: (root) Additional property mysql is not allowed Version 2.2 was chosen because it's not deprecated, but it also has been released some time ago: Compose version 2.2 requires docker engine version 1.13.0, which was released on 2017-01-18. So, with this version, hopefully no users will have any issues either with deprecation warnings or with a version that is not yet supported by their docker-engine.
This commit is contained in:
parent
eff7c9529f
commit
20adfb71be
1 changed files with 15 additions and 12 deletions
|
@ -1,4 +1,7 @@
|
|||
mysql:
|
||||
version: "2.2"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
ports:
|
||||
- "3306:3306"
|
||||
|
|
Loading…
Reference in a new issue