oh-my-muse/muse-cloud/docker-compose.yml

30 lines
563 B
YAML

services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: muse
POSTGRES_PASSWORD: muse_dev
POSTGRES_DB: muse
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U muse -d muse"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:8-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
volumes:
pgdata: