Files
auroramusic/docker-compose.yml

34 lines
724 B
YAML

services:
postgres:
image: postgres:16-alpine
container_name: aurora-postgres
restart: unless-stopped
environment:
POSTGRES_USER: aurora
POSTGRES_PASSWORD: aurora
POSTGRES_DB: aurora
ports:
- "5432:5432"
volumes:
- aurora_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aurora -d aurora"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
container_name: aurora-redis
restart: unless-stopped
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
volumes:
aurora_postgres_data: