services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: yetanother ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data - ./packages/db/prisma:/docker-entrypoint-initdb.d healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine ports: - "6379:6379" volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 5s retries: 5 meilisearch: image: getmeili/meilisearch:v1.12 ports: - "7700:7700" environment: MEILI_MASTER_KEY: dev-master-key volumes: - meilisearch_data:/meili_data api: build: context: . dockerfile: apps/api/Dockerfile ports: - "4000:4000" environment: DATABASE_URL: postgresql://postgres:postgres@postgres:5432/yetanother?schema=public REDIS_URL: redis://redis:6379 JWT_SECRET: dev-jwt-secret NODE_ENV: production depends_on: postgres: condition: service_healthy redis: condition: service_healthy web: build: context: . dockerfile: apps/web/Dockerfile ports: - "3000:80" depends_on: - api volumes: postgres_data: redis_data: meilisearch_data: