services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: farmhouse POSTGRES_PASSWORD: farmhouse POSTGRES_DB: farmhouse ports: - "5433:5432" volumes: - pgdata:/var/lib/postgresql/data - ./db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U farmhouse"] interval: 5s timeout: 3s retries: 10 redis: image: redis:7-alpine ports: - "6380:6379" volumes: - redisdata:/data volumes: pgdata: redisdata: