Project: VPS platform

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 ps showed 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 wpnet and traefik_proxy, WordPress and the database only on wpnet, Traefik only on traefik_proxy.

Takeaway

Isolation is the frame in which I can safely try new applications later: whatever goes wrong in one container stays there.