1
0
Fork 0
mirror of https://github.com/EDeev/mobiles_dataset.git synced 2026-10-07 20:49:44 +03:00
mobiles_dataset/compose.yaml

20 lines
601 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Локальный PostgreSQL 15 со схемой курсовой: docker compose up -d
services:
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- ./docker/00-roles.sql:/docker-entrypoint-initdb.d/00-roles.sql:ro
- ./sql/create_schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d mobile_devices_db"]
interval: 5s
retries: 20
volumes:
pgdata: