feat: add prod and develop databases in docker

This commit is contained in:
vilar 2025-12-17 18:18:16 +05:00
parent 3985ba9601
commit c2d2948525

View file

@ -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