Private forum for a circle of friends (history back to 2004): forums and topics, photo albums with a lightbox, private messages/memos, a real-time chat, favourites, a "what's new since your last visit" home page and full-text search.
Stack: Symfony 8.1 · FrankenPHP (Caddy + Mercure) · MariaDB 12.3 · Vite · Tailwind CSS 4 · Vue 3 (editor, chat, uploads) · PHPUnit 12.
Working on the code (humans and agents): read
AGENTS.mdfirst. Feature inventory of the old site:docs/LEGACY_FEATURES.md.
Requires Docker + Compose and the shared Traefik reverse proxy (external network proxy, see ../traefik).
cp .env.example .env # first time only: dev secrets read by Docker Compose
docker compose up -d --build # php, database, node (assets watcher), mailer, design-system
docker compose exec php composer install # first time only (vendor/ is bind-mounted; the entrypoint also does it when empty)
docker compose exec php bin/console doctrine:migrations:migrate -n # also applied at every start of the `php` service
docker compose exec php bin/console app:user:create <pseudo> <password> --admin # accounts are created by the ownerThe app answers on https://comtso.local.sidus.fr (SERVER_NAME): Traefik forwards to the container's port 80 and obtains a Let's
Encrypt certificate (DNS challenge). Assets are rebuilt automatically by the node service (vite build --watch).
compose.yaml is the single, development-only compose file. PHP never reads a .env file: settings are real environment variables set
in the environment: block of the php service (overridable from the shell), and the secrets in .env are turned into
/run/secrets/* files by Compose (details in AGENTS.md).
Env var (shell or .env) |
Default | Meaning |
|---|---|---|
SERVER_NAME |
comtso.local.sidus.fr |
public host name (Traefik router rule, DEFAULT_URI, Mercure URL) |
TRAEFIK_NETWORK / TRAEFIK_ENTRYPOINT / CERT_RESOLVER / TRAEFIK_ENABLE |
proxy / websecure / gandi / true |
Traefik wiring |
REGISTRATION_ENABLED |
false |
set to true to open /register (the forum is private; accounts are normally created by the owner) |
DATABASE_PORT |
3307 |
MariaDB published on the host |
Pre-built image ghcr.io/vincentchalnot/comtso (published by GitHub Actions, .github/workflows/ci.yml) + deploy/compose.yaml:
see deploy/README.md (first deploy, upgrade, rollback, backups).
docker compose exec php sh -c 'APP_ENV=test php bin/console doctrine:migrations:migrate -n' # once per migration
docker compose exec php vendor/bin/phpunit- Photo originals live in
var/photos/originals(private, never underpublic/); thumbnails are generated lazily (bin/console app:photos:warmpre-generates them).