3896cb0089
gates / gates (push) Successful in 7s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
91 lines
3.1 KiB
YAML
91 lines
3.1 KiB
YAML
# Kimai - Időkövetés és projektmenedzsment
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: mariadb
|
|
# RAM: ~100M (mem_limit: 384M) | Pi-compatible: Yes
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
|
|
# ADMIN_EMAIL - Admin email
|
|
# ADMIN_PASSWORD - Admin jelszó (auto-generated)
|
|
|
|
services:
|
|
kimai:
|
|
image: kimai/kimai2:2.67.0
|
|
container_name: kimai
|
|
restart: unless-stopped
|
|
depends_on:
|
|
kimai-db:
|
|
condition: service_healthy
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- DATABASE_URL=mysql://kimai:${DB_PASSWORD}@kimai-db:3306/kimai?charset=utf8mb4&serverVersion=11.6.2-MariaDB
|
|
- ADMINMAIL=${ADMIN_EMAIL:-admin@example.com}
|
|
- ADMINPASS=${ADMIN_PASSWORD}
|
|
# R-776 (R-753, controller >= 0.286.0): trust the docker networks as proxies (the image default is
|
|
# nginx,localhost,127.0.0.1, so traefik was not trusted and every login/reset limiter keyed on traefik's one address
|
|
# — a stranger's tries throttled the household too). Symfony then walks X-Forwarded-For from the RIGHT: the tunnel's
|
|
# real visitor, or the LAN client. The bookstack shape (APP_PROXIES); measured on 9202 2026-10-06 with a control (checklist 3.6; felhom.eu audits/morning-after-2026-10-06/live-9202/).
|
|
- TRUSTED_PROXIES=127.0.0.1,172.16.0.0/12
|
|
volumes:
|
|
- kimai_var:/opt/kimai/var
|
|
networks:
|
|
- traefik-public
|
|
- kimai-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 384M
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:8001"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.kimai.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.kimai.entrypoints=websecure"
|
|
- "traefik.http.routers.kimai.tls=true"
|
|
- "traefik.http.routers.kimai.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.kimai.loadbalancer.server.port=8001"
|
|
|
|
kimai-db:
|
|
image: mariadb:11.8
|
|
container_name: kimai-db
|
|
restart: unless-stopped
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
|
|
- MYSQL_DATABASE=kimai
|
|
- MYSQL_USER=kimai
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
- TZ=Europe/Budapest
|
|
# MARIADB_AUTO_UPGRADE: on a MAJOR engine move the engine converts its own datadir (~7 s on a
|
|
# small DB, backs its system tables up first). Operator ruling 2026-09-13 on
|
|
# felhom.eu/documentation/audits/SPIKE-r459-mariadb-upgrade-2026-09-06.md. Inert until a
|
|
# major moves — and none may, until Slice 4 (R-448) ships: see CLAUDE.md, engine-major rule.
|
|
- MARIADB_AUTO_UPGRADE=1
|
|
volumes:
|
|
- kimai_db_data:/var/lib/mysql
|
|
networks:
|
|
- kimai-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
|
|
volumes:
|
|
kimai_db_data:
|
|
kimai_var:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
kimai-internal:
|