mirror of
https://github.com/EDeev/mobiles_dataset.git
synced 2026-10-07 20:49:44 +03:00
20 lines
601 B
YAML
20 lines
601 B
YAML
# Локальный 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:
|