8ffd104f64
Made-with: Cursor
23 lines
814 B
YAML
23 lines
814 B
YAML
# По умолчанию этот compose ничего не поднимает — используется ОБЩИЙ Postgres из
|
||
# ../Postgres_TG_Bots/docker-compose.dev.yml (порт 5432 на хосте, сеть hr_postgres_dev_net).
|
||
# В backend/.env: DATABASE_URL=...localhost:5432/clinic_tests (см. backend/.env.example).
|
||
#
|
||
# Только если общий кластер не нужен, изолированный Postgres (порт 5433):
|
||
# docker compose --profile standalone up -d
|
||
|
||
services:
|
||
postgres:
|
||
profiles: ["standalone"]
|
||
image: postgres:15
|
||
environment:
|
||
POSTGRES_DB: clinic_tests
|
||
POSTGRES_USER: developer
|
||
POSTGRES_PASSWORD: dev_password
|
||
ports:
|
||
- "5433:5432"
|
||
volumes:
|
||
- postgres_data:/var/lib/postgresql/data
|
||
|
||
volumes:
|
||
postgres_data:
|