24 lines
529 B
YAML
24 lines
529 B
YAML
services:
|
|
postgres:
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_USER: huijing
|
|
POSTGRES_PASSWORD: huijing
|
|
POSTGRES_DB: huijing_dev
|
|
ports:
|
|
- "${POSTGRES_PORT:-5432}:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U huijing -d huijing_dev"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 20
|
|
redis:
|
|
image: redis:7
|
|
ports:
|
|
- "${REDIS_PORT:-6379}:6379"
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 20
|