mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
fixed docker-compose.yml
This commit is contained in:
parent
845809970c
commit
131e96b7a2
1 changed files with 17 additions and 16 deletions
|
@ -1,18 +1,19 @@
|
||||||
mysql:
|
services:
|
||||||
image: mysql:5.7
|
app:
|
||||||
ports:
|
image: hllvc/spring-petclinic:latest
|
||||||
- "3306:3306"
|
|
||||||
environment:
|
|
||||||
- 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"
|
|
||||||
app:
|
|
||||||
image: hllvc/spring-petclinic
|
|
||||||
depends_on:
|
|
||||||
- mysql
|
|
||||||
ports:
|
ports:
|
||||||
- "3000:8080"
|
- "3000:8080"
|
||||||
|
links:
|
||||||
|
- mysql:mysql
|
||||||
|
mysql:
|
||||||
|
image: mysql:5.7
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
environment:
|
||||||
|
- 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"
|
||||||
|
|
Loading…
Reference in a new issue