services: db: image: postgres:18-alpine ports: - '5432:5432' environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=tamery command: [postgres, -c, wal_level=logical] volumes: - postgres_data:/var/lib/postgresql restart: unless-stopped healthcheck: test: [CMD-SHELL, pg_isready -U postgres] interval: 10s timeout: 5s retries: 5 redis: image: redis/redis-stack:7.4.0-v8 restart: always ports: - '6379:6379' - '8001:8001' environment: - REDIS_ARGS=--requirepass root volumes: - redis_data:/data healthcheck: test: [CMD, redis-cli, -a, root, ping] interval: 10s timeout: 5s retries: 5 volumes: postgres_data: redis_data: