A Compose stack starts, but no one has proved that its data survives a rebuild or that its internal services stay private.
Decision: A dedicated CPU server can host an AI application, vector store, embedding jobs, and external model API integrations, but do not approve launch based on a successful container start. Test the real workload, storage, network boundaries, secrets, and recovery first. If the main requirement is training or high-concurrency large-model inference, choose a suitable GPU plan instead of treating a CPU server as a substitute.
This runbook is for developers moving a local Docker Compose AI stack to a remote server.
It also helps small-team leads check storage, network, and recovery requirements before deploying a RAG service or AI platform.
Server buyers and technical staff can use it to compare actual server options against measured application needs.
Last updated November 21, 2026. We checked the Docker Compose release history, the production deployment guide, and Docker’s current storage, resource, networking, and secrets documentation.
Inventory the services before testing
A Compose file describes how services are configured and connected. It does not prove that the application stack is ready for production. Start by making a service inventory that states what each container does, where its data lives, and what it needs to reach.
For an AI application, the inventory commonly includes:
- Application or workflow service: the user-facing interface, API, or automation engine.
- Database: application accounts, settings, job state, and other structured records.
- Vector store: embeddings and indexes used for retrieval. It may be a dedicated service or a database extension.
- Embedding or reranking service: a local CPU service, a separately hosted model endpoint, or an external API.
- Model endpoint: a local inference service or an external provider. Make this distinction explicit; external API use changes the data-flow and privacy review.
- Supporting components: reverse proxy, task queue, object storage, monitoring, or cache, if the application actually requires them.
For each service, record its image and version, startup dependencies, health check, environment variables, published ports, mounted volumes, and backup or restore method. Use the project’s current deployment instructions to verify dependencies and supported configuration; the Docker Compose production guide describes using Compose for a single-server production deployment, but it does not certify a particular AI application stack.
A useful inventory distinguishes “the container is running” from “the service can complete its job.” A database container may be running while the application cannot authenticate to it. An embedding endpoint may respond while a document-ingestion job fails later. Record what a successful, end-to-end workflow looks like for your application, not just which containers show an active state.
Test CPU and memory against the real workload
A server is not ready because the image pulled successfully or a single request returned an answer. Readiness depends on what happens during your actual workload.
Start with a representative set of tasks: a normal application request, document ingestion, embedding generation, retrieval, and any background job that will run after launch. Include the model path you actually plan to use. If the application calls an external model API, test that path separately from local CPU inference. The waiting and compute patterns differ, and one test does not validate the other.
Collect host and container observations while the tasks run:
docker compose ps
docker stats --no-stream
free -h
vmstat 1
Treat these as observation tools, not pass/fail verdicts on their own. Record CPU utilization, memory use, swap activity, job completion, error logs, and how quickly the system returns to its normal idle pattern. Repeat the workload when background jobs and application traffic overlap in the way you expect after launch. If you have no reliable workload sample yet, keep the result provisional rather than inventing a fixed CPU or memory threshold.
Check whether resource limits are defined and whether they match your operating plan. Docker documents that containers have no resource constraints by default unless limits are set. That means a misbehaving service may compete for host resources rather than being held to a deliberate allocation; see the Docker resource constraints documentation. A limit can prevent one container from consuming everything, but an overly restrictive limit can also cause failed jobs or poor response times. Validate limits with real tasks and review the service logs when a container is terminated or becomes unresponsive.
When local CPU inference is involved, check the model’s memory requirements using its documented format and runtime configuration. A rough estimate based on parameter count and quantization alone is incomplete: runtime overhead, context cache, loaded embeddings, and other services also consume memory. Do not turn a paper estimate into a production promise. If your required workload depends on high-throughput inference or model training, plan for suitable GPU compute; a CPU server is more appropriate for application services, retrieval, embedding work that fits the measured capacity, and external API orchestration.
For an AMD bare metal server, also check that the operating system, runtime, and inference framework support the processor features they require. Do not infer inference speed from core count alone. Memory bandwidth, software support, model format, and the workload itself affect results. We need measurements from the intended application and runtime before recommending a capacity.
Prove that data survives container replacement
Container filesystems are not a safe home for data that must survive replacement. Map every durable item to a named volume or an explicit host directory, then confirm that the application uses that path.
Check the database, vector index, uploaded documents, application configuration, and model cache separately. The cache may be replaceable, while user documents and indexes may not be. Make that distinction in the recovery notes so that cleanup or rebuild procedures do not delete irreplaceable data by mistake.
Inspect the resolved Compose configuration before deployment:
docker compose config
docker compose ps
Review the rendered volume mappings and confirm that they point to the expected host paths or named volumes. Avoid publishing credentials in shared command output or attaching unredacted configuration to a support ticket.
Then carry out a controlled persistence test during a maintenance window:
- Create a test record or upload a non-sensitive test document through the application.
- Confirm that it is visible through the application and stored in the expected service.
- Stop and recreate the relevant container using the project’s documented procedure.
- Confirm that the record, document, and application state remain available.
- Record any data that must be restored separately, including configuration that does not live in the database.
Docker’s storage documentation explains the distinction between container storage and persistent storage. A local NVMe volume can keep data available when a container is replaced, but it is still local to the server. It is not an off-host backup. Keep an independent backup and test a restore; do not describe local disks as a backup service.
Acceptance note: A successful container restart proves less than a restore test. Write down what is backed up, where the copy resides, and which operator can restore it. If the recovery procedure has not been tried, mark recovery as unverified.
Check network access and secrets at the boundary
Make a service-by-service list of the network paths the stack needs. Separate traffic from users to the public application, traffic between Compose services, and outbound requests to external APIs. Then compare that list with the ports and networks in the resolved configuration.
A database or internal inference endpoint generally should not be exposed publicly just because a service needs to be reachable by another container. Docker’s port publishing behavior matters here: when a published port has no specific host IP, Docker publishes it on all host interfaces by default. Confirm the binding and firewall behavior in the port publishing documentation. Publish only the entry points that users or an approved proxy need, and verify from outside the server that internal services are not reachable.
Review outbound connections too. If the stack sends prompts, document text, filenames, or retrieved passages to an external model API, those items leave the self-hosted server. “Self-hosted” describes where some parts of the application run; it does not mean every data exchange stays on that machine. Check the actual request path and the relevant service terms before using confidential material.
Next, inventory model API keys, database credentials, session-signing keys, and application secrets. Record where each is stored, which services can read it, who can rotate it, and what happens if it is exposed. Do not bake secrets into an image or commit them to the application repository.
Compose supports service-scoped secret access, but the application still needs to read a secret from the path and format it expects. Verify the application’s configuration and the Compose secrets reference together. A secret declaration is not proof that the application uses it, and it does not replace checking file permissions, access, rotation, or logs for accidental disclosure.
Compare launch decisions with this acceptance matrix
Use this matrix to decide whether to launch, remediate, or change the deployment plan. “Pass” means the stated test has been completed and recorded, not that a container merely started.
| Decision area | Launch when | Hold or change the plan when |
|---|---|---|
| Workload capacity | Representative application and background tasks complete, with host and container observations recorded | Tasks fail, swap or memory pressure disrupts work, or the real workload has not been tested |
| Data persistence | Durable paths are mapped and a controlled container replacement preserves application data | Required files remain in a disposable layer, or persistence has not been verified |
| Backup and restore | An off-host copy and a tested recovery procedure exist for data that cannot be recreated | The only copy is on the server, or restoration depends on an undocumented manual fix |
| Network exposure | Public entry points are intentional; database and internal services are not unintentionally reachable | Port bindings, firewall rules, or external API data flows are unclear |
| Secrets | Credentials are kept outside images and source control, access is scoped, and rotation is understood | A key is exposed, service access is unknown, or application secret handling is unverified |
| Recovery | Container and host restart checks complete, core workflows work afterward, and an owner knows the recovery steps | Recovery is assumed from a running-state check or no one owns the repair procedure |
A “hold” does not always mean buying a larger server. It may mean fixing a volume mapping, removing an unnecessary public port, changing a model call path, adding an off-host backup, or adjusting a container limit. Upgrade only when measurements show a capacity problem that configuration changes cannot reasonably address.
Verify restart recovery and record the handoff
Use a maintenance window for restart testing. Before starting, make sure the team understands what will be interrupted and that a recoverable backup exists. Check the documented procedure for the application and its dependencies rather than assuming that Compose startup order guarantees application readiness.
Test container recovery first, then test host recovery under an approved maintenance plan. After each event, verify that:
- the expected services start and remain healthy according to their own health checks;
- the application can authenticate to its database and reach its vector store;
- a representative AI workflow can complete, including document retrieval or model API access where applicable;
- uploaded documents, records, configuration, and any required indexes remain available;
- logs show no unresolved startup, permission, migration, or connection error.
Capture the deployed image references, Compose configuration with secrets removed, host paths for persistent data, backup locations, and the manual steps needed if automatic recovery fails. Record the test date and the person responsible for follow-up. For the server-side handoff, use the post-delivery checks to document what was received and what still needs verification. If you change the image, model endpoint, volume layout, port publishing, or secret handling later, repeat the checks affected by that change.
Docker Compose’s release history is also worth checking as part of routine maintenance. The official release page lists Compose v5.7.1, published November 11, 2026; verify the current release and its notes when preparing a deployment, rather than assuming a version mentioned in an older runbook remains current. That release fact does not imply that an AI application has a vulnerability or requires a particular server configuration.
Match the server to the measured stack
Use the acceptance record—not a generic “AI server” label—to compare deployment choices. A shared VPS may be sufficient for a light service, a short test, or a workload with modest and predictable needs. It can be a poor fit when resource contention is unacceptable, the application needs more memory than the selected instance provides, or the provider’s storage and network limits do not match the workload. A public cloud instance may offer easier elastic changes, but assess its actual billing model and data-handling path rather than assuming it will cost less over a long-running deployment.
An independent AMD physical server is more relevant when the application needs dedicated machine resources, stable long-running operation, or control over its OS and storage layout. It does not remove the need to size the workload, configure container limits, protect public endpoints, or maintain off-host backups. It also does not replace a GPU plan when GPU-dependent inference or training is central to the requirement.
Before purchase, compare the current product options with your recorded CPU, memory, disk, network, operating system, and recovery requirements. The product page is the source for current availability and terms; we do not infer a particular server configuration or price from a Compose file. If your tests show that the stack fits a dedicated CPU host and its operational responsibilities are acceptable, review the current mbpscloud server options against that checklist. If local GPU compute is essential, choose a plan that explicitly meets that requirement instead.
Further reading
Match Your AI Stack to Dedicated Compute
Run CPU-based Docker Compose services on an mbpscloud AMD EPYC 7543P server with 32 cores, 64 threads, and your choice of 128GB or 256GB ECC memory.
