This commit is contained in:
dmitriy.churmeev
2026-03-03 20:37:47 +03:00
parent f4ec39d1a4
commit cab24a6a1d
18 changed files with 619 additions and 0 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
version: '3.8'
services:
postgres:
image: postgres:15
container_name: postgres_db
environment:
POSTGRES_DB: add_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: