mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Update docker-compose.yml
This commit is contained in:
parent
971fbf4f9d
commit
7f2ebda3e7
1 changed files with 6 additions and 12 deletions
|
@ -1,22 +1,20 @@
|
|||
version: "2.2"
|
||||
|
||||
services:
|
||||
webapp:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
mysql:
|
||||
image: mysql:8.2
|
||||
ports:
|
||||
- "3306:3306"
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_ROOT_PASSWORD=
|
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=true
|
||||
- MYSQL_USER=petclinic
|
||||
- MYSQL_PASSWORD=petclinic
|
||||
- MYSQL_DATABASE=petclinic
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- "./conf.d:/etc/mysql/conf.d:ro"
|
||||
profiles:
|
||||
- mysql
|
||||
postgres:
|
||||
image: postgres:16.1
|
||||
ports:
|
||||
|
@ -25,9 +23,5 @@ services:
|
|||
- POSTGRES_PASSWORD=petclinic
|
||||
- POSTGRES_USER=petclinic
|
||||
- POSTGRES_DB=petclinic
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
postgres_data:
|
||||
profiles:
|
||||
- postgres
|
||||
|
|
Loading…
Reference in a new issue