services: postgres: image: postgres:16 container_name: church-platform-postgres restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: church_platform ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data api: build: context: . dockerfile: apps/api/Dockerfile container_name: church-platform-api restart: unless-stopped depends_on: - postgres ports: - "3000:3000" volumes: - ./apps/api:/app/apps/api - /app/apps/api/node_modules working_dir: /app/apps/api command: pnpm dev web: build: context: . dockerfile: apps/web/Dockerfile container_name: church-platform-web restart: unless-stopped depends_on: - api ports: - "5173:5173" volumes: - ./apps/web:/app/apps/web - /app/apps/web/node_modules working_dir: /app/apps/web command: pnpm dev --host 0.0.0.0 volumes: postgres_data: