services: postgres: image: postgres:15-alpine environment: POSTGRES_USER: workerbees POSTGRES_PASSWORD: workerbees POSTGRES_DB: workerbees ports: - '5433:5432' volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ['CMD-SHELL', 'pg_isready -U workerbees'] interval: 5s timeout: 5s retries: 10 redis: image: redis:7-alpine ports: - '6379:6379' healthcheck: test: ['CMD', 'redis-cli', 'ping'] interval: 5s timeout: 5s retries: 10 api: build: context: . dockerfile: apps/api/Dockerfile ports: - '3000:3000' environment: DATABASE_URL: postgresql://workerbees:workerbees@postgres:5432/workerbees REDIS_URL: redis://redis:6379 PORT: '3000' depends_on: postgres: condition: service_healthy redis: condition: service_healthy web: build: context: . dockerfile: apps/web/Dockerfile ports: - '4200:4200' depends_on: - api volumes: pgdata: