Files
fund-tracer/infra/docker/docker-compose.yml

30 lines
579 B
YAML
Raw Normal View History

2026-03-11 16:28:04 +08:00
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: fundtracer
POSTGRES_PASSWORD: fundtracer_dev
POSTGRES_DB: fundtracer
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fundtracer"]
interval: 5s
timeout: 3s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
volumes:
pgdata: