Files
computer-playbook/roles/web-app-chess/config/main.yml
Kevin Veen-Birkenbach 61c29eee60 web-app-chess: build/runtime hardening & feature enablement
Build: use Yarn 4 via Corepack; immutable install with inline builds.

Runtime: enable Corepack as user 'node', use project-local cache (/app/.yarn/cache), add curl; fix ownership.

Entrypoint: generate keys in correct dir; run 'yarn install --immutable --inline-builds' before migrations; wait for Postgres.

Config: enable matomo/css/desktop; notify 'docker compose build' on entrypoint changes.

Docs: rename README title to 'Chess'.

Ref: ChatGPT conversation (2025-09-03) — https://chatgpt.com/share/68b88126-7a6c-800f-acae-ae61ed577f46
2025-09-03 19:56:13 +02:00

34 lines
806 B
YAML

credentials: {}
docker:
services:
database:
enabled: true # Use central DB role (recommended)
application:
image: "node" # Base image family; final image is custom
version: "20-bullseye" # >=16 as required upstream
name: "web-app-chess"
backup:
no_stop_required: true
volumes:
data: "chess_data"
features:
matomo: true
css: true
desktop: true
central_database: true
logout: false
oidc: false
server:
csp:
whitelist: {}
flags: {}
domains:
canonical:
- "chess.{{ PRIMARY_DOMAIN }}"
aliases: []
rbac:
roles: {}
source:
repo: "https://github.com/stephank/castling.club.git"
ref: "main"