deployment
Move a Docker Compose project to a single VPS
A VPS move is a change in operating boundary, not merely a different docker compose up command.
Define the host boundary first
Record who can access the server, which ports reach the public internet, and where the deployment can be recovered if the host is unavailable. A public service usually needs one HTTPS entry point rather than a collection of exposed application and database ports.
Carry state separately from containers
Images can be recreated. Databases, uploaded files, repositories, certificates, and configuration need an explicit persistence and recovery map. Keep the map next to the deployment project before migration begins.
Make the first launch reversible
Render the final configuration, record the image versions, and keep a backup of current state before switching traffic. The first VPS launch should also prove DNS, HTTPS, restart behavior, and a representative restore.