Steuerkram/docker-compose.yml

55 lines
1.8 KiB
YAML
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.

services:
web:
build: .
ports:
- "8080:80"
volumes:
- ./public:/var/www/html/public
- ./src:/var/www/html/src
- ./migrations:/var/www/html/migrations
# Persistente Nutzdaten (siehe data/README.md) – bewusst je ein eigenes Volume,
# damit erkennbar bleibt, was wo liegt. data/mariadb wird hier NICHT gemountet.
- ./data/belege:/var/www/html/data/belege
- ./data/logo:/var/www/html/data/logo
# Übergangs-Mount: alte Ablage vor der Trennung in belege/logo. Der Entrypoint
# übernimmt vorhandene Dateien beim Start automatisch nach data/belege bzw.
# data/logo. Kann entfernt werden, sobald alle Installationen umgezogen sind.
- ./uploads:/var/www/html/data/legacy-uploads
- ./tests:/var/www/html/tests
- ./scripts:/var/www/html/scripts
environment:
TZ: Europe/Berlin
DB_HOST: db
DB_NAME: steuerkram
DB_USER: steuerkram
DB_PASS: steuerkram
APP_SECRET: change-this-in-production
APP_KEY: ${APP_KEY:-}
SIDEBAR_BG_COLOR: ${SIDEBAR_BG_COLOR:-#1e293b}
OLLAMA_URL: ${OLLAMA_URL:-http://host-gateway:11434}
OLLAMA_MODEL: ${OLLAMA_MODEL:-qwen3-vl}
extra_hosts:
- "host-gateway:host-gateway"
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: mariadb:11
environment:
TZ: Europe/Berlin
MARIADB_ROOT_PASSWORD: rootpass
MARIADB_DATABASE: steuerkram
MARIADB_USER: steuerkram
MARIADB_PASSWORD: steuerkram
volumes:
- ./data/mariadb:/var/lib/mysql
- ./migrations:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped