Containerize dev: adopt dunglas/symfony-docker + Postgres + Vite frontend service #28
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Set up the dev container stack on the new architecture.
dunglas/symfony-dockeras the base (rootcompose.yaml+ Dockerfile + Caddyfile + entrypoint). Skip the FrankenPHP-runtime step (built into Symfony 8.1).PODMAN_USERNS=keep-id, USER_ID/GROUP_ID), volume ownership (vendor/, var/), entrypoint chown behaviour. Get the bare Symfony container running under Podman before adding the frontend (de-risk the spike)..env: buckets/buckets).frontend/Vitewebservice (Node 22, HMR) incompose.override.yaml(dev-only)./api/*→ Symfony, everything else → frontend; SPA fallback to index.html./api→ backend (same-origin in dev → no CORS, cookie auth works identically dev/prod).shell.nix: psql client (drop mariadb.client), pointdev-*wrappers at rootcompose.yaml.Exit:
dev-upbrings api+web+db; app reachable; HMR works under Podman.Done. Backend dev container stack is up on rootless Podman:
dunglas/symfony-dockerbase (Dockerfile pinned to php8.4), Mercure left intact.databaseservice; app serves on http://localhost:8100 (HTTP-only dev viaSERVER_NAME: ":80").pdo_pgsqlextension (symfony-docker omits it; Docker recipe was declined), HTTP→HTTPS redirect, podman-composename:ports friction.Scope change: the frontend Vite
webservice is deferred to #33 (Scaffold React/Vite SPA) — there's nofrontend/to serve until then. The backend containerization (the real spike) is complete, so closing this.