Files
s2f/docker-compose.yml
T
2026-07-06 22:03:22 +08:00

20 lines
447 B
YAML

services:
postgres:
image: postgres:15-alpine
container_name: s2f-postgres
environment:
POSTGRES_DB: s2f_db
POSTGRES_USER: s2f_user
POSTGRES_PASSWORD: s2f_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U s2f_user -d s2f_db"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: