life-deployments/docker-compose.yml

39 lines
898 B
YAML
Raw Permalink Normal View History

services:
postgres:
image: postgres:16-alpine
container_name: life-platform-postgres
restart: unless-stopped
ports:
- "25471:5432"
environment:
POSTGRES_DB: life_manager
POSTGRES_USER: lilith
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lilith -d life_manager"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis/redis-stack:latest
container_name: life-platform-redis
restart: unless-stopped
ports:
- "26370:6379"
- "28371:8001"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
redis_data: