24 lines
514 B
YAML
24 lines
514 B
YAML
name: kursach
|
|
|
|
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: kursach_postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: kursach
|
|
POSTGRES_USER: kursach
|
|
POSTGRES_PASSWORD: kursach
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
- ./sql:/docker-entrypoint-initdb.d:ro
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U kursach -d kursach"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
|
|
volumes:
|
|
pgdata: |