alt/deployments/local/docker-compose.yml

32 lines
604 B
YAML

services:
postgres:
image: postgres:17
environment:
POSTGRES_DB: alt
POSTGRES_USER: alt
POSTGRES_PASSWORD: alt
ports:
- "5432:5432"
volumes:
- alt_postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U alt -d alt"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7
ports:
- "6379:6379"
volumes:
- alt_redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
volumes:
alt_postgres:
alt_redis: