Files
moneyfy/docker-compose.override.yml.example
T
moneyfyandClaude Opus 5 87bee9b72a build: Docker-Images, Compose-Setup und Gitea-Workflows
- Mehrstufige Dockerfiles je Dienst mit Stufen für Entwicklung und Betrieb,
  beide Images laufen als unprivilegierter Benutzer
- Backend-Entrypoint wartet auf die Datenbank, migriert und seedt nur bei
  leerem Kategoriebaum (neues Flag --if-empty)
- docker-compose.yml mit Netz-Trennung, Healthchecks und benannten Volumes;
  die Datenbank ist ausschließlich im internen Netz erreichbar
- nginx liefert das Bundle aus und reicht /api weiter; index.html ungecacht,
  gehashte Assets ein Jahr
- Gitea-Workflows: ci.yml für Lint, Tests und Bundle-Bau, build.yml für die
  Images nach linux/amd64 ohne Deploy-Schritt
- docs/runner.md und docs/deployment.md, .dockerignore je Dienst

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014e7t8UpmoVNMtWivY5LiSH
2026-09-09 17:14:44 +02:00

53 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Lokale Entwicklung: aus dem Quellcode bauen, Hot Reload, offene Ports.
# Kopieren nach `docker-compose.override.yml` die Datei wird nicht eingecheckt.
#
# Compose liest sie automatisch zusätzlich zu docker-compose.yml.
services:
moneyfy-db:
# Datenbank direkt erreichbar, etwa 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"
# Im Entwicklungsbetrieb sollen keine Mails hinausgehen.
SCHEDULER_ENABLED: "false"
# Der Vite-Server läuft auf einem anderen Port und braucht daher CORS.
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 reicht /api an das Backend weiter, siehe vite.config.ts.
VITE_API_PROXY: http://moneyfy-backend:8000
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
- ./frontend/index.html:/app/index.html:ro
- ./frontend/vite.config.ts:/app/vite.config.ts:ro
- ./frontend/tailwind.config.js:/app/tailwind.config.js:ro
ports:
- "127.0.0.1:5173:5173"
# Der Entwicklungsserver kennt /healthz nicht.
healthcheck:
disable: true