services: db: image: postgres:16-alpine container_name: wealthysmart-db-dev environment: POSTGRES_USER: wealthy_user POSTGRES_PASSWORD: wealthy_pass POSTGRES_DB: wealthysmart ports: - "5433:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U wealthy_user -d wealthysmart"] interval: 5s timeout: 3s retries: 5 backend: build: context: ./backend dockerfile: Dockerfile container_name: wealthysmart-backend-dev environment: DATABASE_URL: postgresql://wealthy_user:wealthy_pass@db:5432/wealthysmart ports: - "8000:8000" volumes: - ./backend:/app depends_on: db: condition: service_healthy frontend: build: context: ./frontend dockerfile: Dockerfile container_name: wealthysmart-frontend-dev ports: - "5174:5173" volumes: - ./frontend:/app - /app/node_modules volumes: postgres_data: