services: db: ports: - "${DB_PORT:-5432}:5432" backend: command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload volumes: - ./backend:/app ports: - "${BACKEND_PORT:-8000}:8000" environment: SECRET_KEY: ${SECRET_KEY:-dev-secret-not-for-production} DEBUG: "true" CORS_ORIGINS: '["http://localhost:5173","http://localhost:3000","http://localhost"]' frontend: image: node:20-alpine working_dir: /app command: sh -c "npm install && npm run dev -- --host 0.0.0.0" volumes: - ./frontend:/app - frontend_node_modules:/app/node_modules ports: - "5173:5173" environment: NODE_ENV: development depends_on: - backend volumes: frontend_node_modules: