mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
32 lines
768 B
YAML
32 lines
768 B
YAML
services:
|
|
app:
|
|
image: lilitaa/my-java-app
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/petclinic
|
|
SPRING_DATASOURCE_USERNAME: petclinic
|
|
SPRING_DATASOURCE_PASSWORD: petclinic
|
|
depends_on:
|
|
- postgres
|
|
|
|
mysql:
|
|
image: mysql:9.2
|
|
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"
|
|
postgres:
|
|
image: postgres:18.0
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_PASSWORD=petclinic
|
|
- POSTGRES_USER=petclinic
|
|
- POSTGRES_DB=petclinic
|