схема бд и компоуз с постгресс

This commit is contained in:
2026-10-23 01:32:02 +03:00
parent 65003b6119
commit 17377031cc
6 changed files with 364 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
services:
postgres:
image: postgres:17.6-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 3s
retries: 10
volumes:
pgdata: