Skip to content

chore: refresh docker-compose.yaml template to align with prod (#71)#90

Merged
SyniRon merged 1 commit into
developfrom
chore/mariadb-12-eval
May 22, 2026
Merged

chore: refresh docker-compose.yaml template to align with prod (#71)#90
SyniRon merged 1 commit into
developfrom
chore/mariadb-12-eval

Conversation

@SyniRon
Copy link
Copy Markdown
Collaborator

@SyniRon SyniRon commented May 22, 2026

Summary

Closes #71. Single-commit refresh of the in-repo docker-compose.yaml template aligned with the live 7cav-api stack (which the user shared sans secrets).

  • Drop deprecated version: '3'.
  • Drop the database service — the DB is sourced from the xenforo stack via the xenforo_internal external network, not bundled in the api compose. This makes Dependabot Bump mariadb from 11.4 to 12.2.2 #85 (mariadb 11.4 → 12.2.2) moot — the image reference is gone.
  • Drop the local-TLS-test nginx service — TLS terminates at a different stack. make certs remains independent and unchanged.
  • Add the missing redis service (caching has been required since 2.1.0; the template never had it).
  • Networks: switch to the live edge + xenforo_internal external pair.
  • Env vars: add full set — REDIS_HOST / REDIS_PORT / REDIS_PASSWORD, plus commented-out FORUM_BASE_URL and REFERENCE_CACHE_REFRESH_INTERVAL for the tickets endpoint.
  • Live patterns: rename api container to 7cav-api, add the watchtower-enable label, restart: always.
  • DB_HOST defaults to xenforo-db (the cross-stack hostname).
  • Header comment documents prerequisites (docker network create edge / xenforo_internal, xenforo stack running).

Test plan

  • docker compose config --quiet validates the refreshed YAML
  • No Go-side changes; CI build/lint will reflect that

Manual smoke against mariadb:12.2.2 (the original intent of this branch) confirmed XenForo schema imports clean and every API path returns identical data — see prior history of this PR. With the DB service removed from the template, the bump itself is no longer carried here.

Closes #71. Makes #85 moot — recommend closing #85 with a comment pointing here.

🤖 Generated with Claude Code

The in-repo template predated Redis and the tickets endpoint, declared
deprecated `version: '3'`, and bundled a database + nginx that the live
api stack doesn't carry. Refresh aligned with the live `7cav-api` stack:

- drop deprecated `version: '3'`
- add `redis` service (caching has been required since 2.1.0; the
  template never had it)
- drop the `database` service — the DB is sourced from the `xenforo`
  stack via the `xenforo_internal` external network, not bundled in
  the api compose
- drop the local-TLS-test `nginx` service — TLS is terminated at a
  different stack; `make certs` is independent and unchanged for devs
  who want local TLS
- networks: switch to the live `edge` + `xenforo_internal` external pair
- env vars: add full set — `REDIS_HOST` / `REDIS_PORT` /
  `REDIS_PASSWORD`, plus commented `FORUM_BASE_URL` and
  `REFERENCE_CACHE_REFRESH_INTERVAL` for the tickets endpoint
- live patterns: rename api container to `7cav-api`, add the
  watchtower-enable label, `restart: always`
- `DB_HOST` defaults to `xenforo-db` (the cross-stack hostname)
- header comment documents the prerequisites

Makes Dependabot #85 (mariadb 11.4 → 12.2.2) moot — the image
reference is gone.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@SyniRon SyniRon force-pushed the chore/mariadb-12-eval branch from b14b1ae to 0cb42f5 Compare May 22, 2026 03:33
@SyniRon SyniRon changed the title chore: bump mariadb 11.4→12.2.2 + refresh compose template (#71, #85) chore: refresh docker-compose.yaml template to align with prod (#71) May 22, 2026
@SyniRon SyniRon merged commit 899c699 into develop May 22, 2026
1 of 2 checks passed
@SyniRon SyniRon deleted the chore/mariadb-12-eval branch May 22, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: refresh in-repo docker-compose.yaml template

1 participant