services: db: image: postgres:16-alpine environment: POSTGRES_USER: construction POSTGRES_PASSWORD: construction_pass POSTGRES_DB: construction_db volumes: - pgdata:/var/lib/postgresql/data ports: - "5434:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U construction -d construction_db"] interval: 5s timeout: 5s retries: 5 backend: build: ./backend ports: - "7303:3001" environment: DATABASE_URL: postgresql://construction:construction_pass@db:5432/construction_db JWT_SECRET: construction_secret_key_2024 PORT: 3001 NODE_ENV: development depends_on: db: condition: service_healthy volumes: - ./backend:/app - /app/node_modules frontend: build: ./frontend ports: - "7307:5173" environment: VITE_API_URL: http://localhost:7303 depends_on: - backend volumes: - ./frontend:/app volumes: pgdata: