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