# Lokale Entwicklung: Hot Reload und offene Ports. # Kopieren nach `docker-compose.override.yml` – die Datei wird nicht eingecheckt. services: moneyfy-db: # Datenbank direkt erreichbar, z. B. für psql oder einen SQL-Client. ports: - "127.0.0.1:5432:5432" moneyfy-backend: build: context: ./backend target: development image: moneyfy-backend:dev command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] environment: ENVIRONMENT: development DEBUG: "true" COOKIE_SECURE: "false" SCHEDULER_ENABLED: "false" CORS_ORIGINS: http://localhost:5173 volumes: # Quellcode einblenden, damit --reload greift. - ./backend/app:/app/app:ro - ./backend/alembic:/app/alembic:ro ports: - "127.0.0.1:8000:8000" moneyfy-frontend: build: context: ./frontend target: development image: moneyfy-frontend:dev command: ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"] environment: VITE_API_BASE_URL: http://localhost:8000 volumes: - ./frontend/src:/app/src - ./frontend/public:/app/public - ./frontend/index.html:/app/index.html:ro ports: - "127.0.0.1:5173:5173"