23 lines
593 B
YAML
23 lines
593 B
YAML
# 开发数据库:bun run db:up / docker compose -f docker-compose.dev.yml up -d
|
|
name: umt-dev
|
|
services:
|
|
postgres:
|
|
image: postgres:18.6-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: umt
|
|
POSTGRES_PASSWORD: umt
|
|
POSTGRES_DB: umt
|
|
ports:
|
|
- "127.0.0.1:55433:5432"
|
|
volumes:
|
|
- umt-pg18-data:/var/lib/postgresql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U umt -d umt"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 20
|
|
|
|
volumes:
|
|
umt-pg18-data:
|