version: '3.8' services: postgres: image: postgres:15-alpine environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: realestate_ai ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 web: build: context: . dockerfile: Dockerfile ports: - "3000:3000" environment: - DATABASE_URL=postgresql://postgres:postgres@postgres:5432/realestate_ai - NEXTAUTH_SECRET=your-development-secret-change-in-production - NEXTAUTH_URL=http://localhost:3000 - OPENAI_API_KEY=${OPENAI_API_KEY:-} - STRIPE_SECRET_KEY=${STRIPE_SECRET_KEY:-} - STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY:-} - STRIPE_WEBHOOK_SECRET=${STRIPE_WEBHOOK_SECRET:-} - NEXT_PUBLIC_APP_URL=http://localhost:3000 depends_on: - postgres volumes: postgres_data: