roledesk is built on the boilerplate from here on: pipeline 2.0 (queue and scheduler), auth (one password, sessions, passkeys), the deploy kit and its docs, plus the coupling and packaging tests. Downstream copies, unedited. Refreshed from boilerplate/d56949f7d0f6c0bfe5745478e09007bfad67ae87 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
176 lines
5.5 KiB
YAML
176 lines
5.5 KiB
YAML
services:
|
|
|
|
mealie:
|
|
image: ghcr.io/mealie-recipes/mealie:latest
|
|
container_name: mealie
|
|
restart: unless-stopped
|
|
|
|
# `deploy: resources: limits:` is Swarm-only and was silently ignored,
|
|
# so this container has never actually had a memory limit. This one works.
|
|
mem_limit: 1000m
|
|
|
|
# Was 9925:9000 on every interface — the internet, if the firewall is ever
|
|
# wrong. SWAG reaches it by container name on the shared network; this is
|
|
# only the fallback for when you are on the box itself.
|
|
ports:
|
|
- "127.0.0.1:9925:9000"
|
|
|
|
# Was a Docker-managed volume under /var/lib/docker, root-owned and
|
|
# invisible. A plain directory next to this file, so a backup is `tar`.
|
|
volumes:
|
|
- /srv/data/mealie:/app/data
|
|
|
|
environment:
|
|
ALLOW_SIGNUP: "false"
|
|
PUID: 1000
|
|
PGID: 1000
|
|
TZ: Europe/Brussels
|
|
MAX_WORKERS: 1
|
|
WEB_CONCURRENCY: 1
|
|
BASE_URL: https://mealie.rittershofer.org
|
|
# From .env, chmod 600. Never in this file.
|
|
OPENAI_API_KEY: ${OPENAI_API_KEY:?set OPENAI_API_KEY in .env}
|
|
# A base, not an endpoint. The old /v1/models made it request
|
|
# /v1/models/chat/completions.
|
|
OPENAI_BASE_URL: https://api.openai.com/v1
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "20m"
|
|
max-file: "5"
|
|
|
|
gitea:
|
|
image: gitea/gitea:latest
|
|
container_name: gitea
|
|
restart: unless-stopped
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
volumes:
|
|
- /srv/data/gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "20m"
|
|
max-file: "5"
|
|
|
|
newsdesk:
|
|
image: ${NEWSDESK_IMAGE:?set NEWSDESK_IMAGE in .env}:${NEWSDESK_TAG:-latest}
|
|
container_name: newsdesk
|
|
restart: unless-stopped
|
|
user: "${PUID:-1000}:${PGID:-1000}"
|
|
volumes:
|
|
- /srv/data/newsdesk:/data
|
|
environment:
|
|
TZ: ${TZ:-Europe/Berlin}
|
|
CLAUDE_CODE_OAUTH_TOKEN: ${CLAUDE_CODE_OAUTH_TOKEN:-}
|
|
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
|
|
NEWSDESK_PASSWORD: ${NEWSDESK_PASSWORD:-}
|
|
mem_limit: ${NEWSDESK_MEM:-0}
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "20m"
|
|
max-file: "5"
|
|
|
|
bookly:
|
|
image: git.rittershofer.org/wolf/bookly:${BOOKLY_TAG:-latest}
|
|
container_name: bookly
|
|
restart: unless-stopped
|
|
user: "1000:1000"
|
|
|
|
volumes:
|
|
- /srv/data/bookly:/data
|
|
|
|
environment:
|
|
TZ: Europe/Brussels
|
|
# Required: without it the demo would be open to anyone who finds the hostname, so Compose refuses to start.
|
|
BOOKLY_PASSWORD: ${BOOKLY_PASSWORD:?set BOOKLY_PASSWORD in .env}
|
|
# subscription: the Claude CLI with CLAUDE_CODE_OAUTH_TOKEN (same variable newsdesk reads).
|
|
# api: ANTHROPIC_API_KEY, billed per token, lower latency.
|
|
BOOKLY_BACKEND: ${BOOKLY_BACKEND:-subscription}
|
|
CLAUDE_CODE_OAUTH_TOKEN: ${CLAUDE_CODE_OAUTH_TOKEN:-}
|
|
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
|
|
|
|
# No `ports:`. SWAG reaches :8000 by container name; nothing else can.
|
|
|
|
mem_limit: 0
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "20m"
|
|
max-file: "5"
|
|
|
|
health:
|
|
image: ${HEALTH_IMAGE:?set HEALTH_IMAGE in .env}:${HEALTH_TAG:-latest}
|
|
container_name: health
|
|
restart: unless-stopped
|
|
|
|
# Warehouse, journal, job table, speech models, tiles, backups: all of it
|
|
# under one host directory, so a backup is one target.
|
|
volumes:
|
|
- ${HEALTH_DATA:-./data/health}:/data
|
|
|
|
user: "${PUID:-1000}:${PGID:-1000}"
|
|
|
|
environment:
|
|
TZ: ${TZ:-Europe/Berlin}
|
|
HEALTH_TIMEZONE: ${TZ:-Europe/Berlin}
|
|
# Which model writes the evening entry. The subscription token now; add
|
|
# ANTHROPIC_API_KEY and `docker compose up -d health` (not `restart`)
|
|
# to move to the API. Shared with the other services in this file.
|
|
CLAUDE_CODE_OAUTH_TOKEN: ${CLAUDE_CODE_OAUTH_TOKEN:-}
|
|
ANTHROPIC_API_KEY: ${HEALTH_ANTHROPIC_API_KEY:-}
|
|
# Normally empty. Set it to pin the password -- the way back in when a
|
|
# login is lost -- then empty it and recreate to hand the password back
|
|
# to the Settings page.
|
|
HEALTH_PASSWORD: ${HEALTH_PASSWORD:-}
|
|
# The speech model. `small` (0.7 GB) if turbo (1.9 GB while it runs)
|
|
# does not fit beside everything else on the box.
|
|
HEALTH_WHISPER_MODEL: ${HEALTH_WHISPER_MODEL:-large-v3-turbo}
|
|
|
|
# No `ports:` and no `networks:`: SWAG reaches it by name on this file's
|
|
# network, and nothing else reaches it at all.
|
|
|
|
# `deploy: resources: limits:` is Swarm-only and ignored here. 0 is
|
|
# unlimited until a transcription has been watched on the box.
|
|
mem_limit: ${HEALTH_MEM:-0}
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "20m"
|
|
max-file: "5"
|
|
|
|
swag:
|
|
image: lscr.io/linuxserver/swag:latest
|
|
container_name: swag
|
|
cap_add:
|
|
- NET_ADMIN
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Europe/Brussels
|
|
- URL=rittershofer.org
|
|
- VALIDATION=http
|
|
# Commas and nothing else — SWAG splits on the comma alone, so a space
|
|
# asks for a hostname with a leading space. `news` added for newsdesk;
|
|
# `collabora` dropped, since nothing serves it any more.
|
|
- SUBDOMAINS=www,mealie,git,news,play,body
|
|
- ONLY_SUBDOMAINS=false
|
|
volumes:
|
|
- /etc/config/swag:/config
|
|
ports:
|
|
- 443:443
|
|
- 80:80
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "20m"
|
|
max-file: "5"
|
|
restart: unless-stopped
|