Files
Oxicloud/docker-compose.yml
T
2025-03-28 08:09:18 +01:00

22 lines
478 B
YAML

services:
postgres:
image: postgres:17.4-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: oxicloud
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- ./db/schema.sql:/docker-entrypoint-initdb.d/10-schema.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
pg_data: