mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
feat: add prod and develop databases in docker
This commit is contained in:
parent
3985ba9601
commit
c2d2948525
1 changed files with 9 additions and 13 deletions
|
|
@ -1,17 +1,5 @@
|
|||
services:
|
||||
mysql:
|
||||
image: mysql:9.5
|
||||
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:
|
||||
postgres_prod:
|
||||
image: postgres:18.1
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
|
@ -19,3 +7,11 @@ services:
|
|||
- POSTGRES_PASSWORD=petclinic
|
||||
- POSTGRES_USER=petclinic
|
||||
- POSTGRES_DB=petclinic
|
||||
postgres_develop:
|
||||
image: postgres:18.1
|
||||
ports:
|
||||
- "5433:5432"
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=petclinic
|
||||
- POSTGRES_USER=petclinic
|
||||
- POSTGRES_DB=petclinic_dev
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue