devx: docker compose for starting postgres

This commit is contained in:
Kirill Dubovitskiy 2025-07-15 21:59:15 -07:00
parent ec3c1ed147
commit 652f435307

22
docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: handy_postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: handy
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: