mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
Create docker-compose.yml
This commit is contained in:
parent
f346253f36
commit
77b03c7a4d
1 changed files with 27 additions and 0 deletions
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
version: "2.2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: mysql:8.0
|
||||||
|
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"
|
||||||
|
profiles:
|
||||||
|
- mysql
|
||||||
|
postgres:
|
||||||
|
image: postgres:15.3
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=petclinic
|
||||||
|
- POSTGRES_USER=petclinic
|
||||||
|
- POSTGRES_DB=petclinic
|
||||||
|
profiles:
|
||||||
|
- postgres
|
Loading…
Reference in a new issue