One app, one container
Starting point
One nginx served both sites. A mistake in one configuration could hit both.
Decision
Every application gets its own nginx container. It binds no host port and is reachable only through the internal proxy network.
Implementation
- After the rebuild,
docker psshowed no host-port binding for either nginx container — only Traefik holds ports 80 and 443. - The planned separation into one Docker network per app is still pending: the two nginx containers sit on
wpnetandtraefik_proxy, WordPress and the database only onwpnet, Traefik only ontraefik_proxy.
Takeaway
Isolation is the frame in which I can safely try new applications later: whatever goes wrong in one container stays there.