> ## Documentation Index
> Fetch the complete documentation index at: https://docs.springwinter.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy a Docker application without importing Compose

> Map Docker applications to SpringWinter web servers, workers and data resources, with correct build contexts, health checks and temporary-disk limits.

SpringWinter can build a supported web server or worker from a GitHub Dockerfile, and a web server can use a public container image. It does not import arbitrary Docker Compose stacks. Translate each process and data dependency into a reviewed supported resource before deploying.

## Suitability and prerequisites

This path fits unprivileged container applications that can use the platform's network and durable services. Check the [compatibility matrix](https://docs.springwinter.dev/reference/compatibility.md) for private registries, GPUs, privileged workloads, local volumes and other restrictions. A Docker image starting on your laptop does not prove it fits AWS runtime architecture or task limits.

You need a SpringWinter account, a verified AWS connection, a repository and lockfiles for source builds, and GitHub authorization. A tagged or digested public web-server image can avoid a GitHub build. Workers require the source fields in their current contract; do not assume public-image worker creation is exposed.

## Architecture

```mermaid theme={null}
flowchart LR
    Operator[Dashboard or coding agent] --> Control[SpringWinter control plane]
    Control -->|Approved workflows| AWS
    Browser[Browser] --> ALB
    subgraph AWS[Customer-owned AWS account]
        Build[GitHub Docker build]
        ALB[Application load balancer]
        Web[Web tasks]
        Worker[Worker tasks]
        Data[Private SQL, Valkey or S3 resources]
        Build --> Web
        Build --> Worker
        ALB --> Web
        Web --> Data
        Worker --> Data
    end
```

Compute tasks can be replaced. Local files and task volumes are temporary. A Compose volume declaration does not become a shared persistent volume after translation.

## Inspect a Compose application

For every service, record its role, image/build source, command, internal and public ports, environment names, volumes, startup dependency and required data. Then classify it:

| Compose concept | SpringWinter review |
| - | - |
| HTTP process | Web server with actual listen port and HTTP 200 health path. |
| Queue consumer | Worker without public port or URL. |
| PostgreSQL/MySQL | Supported private SQL resource if engine/features match. |
| Redis service | TLS/cluster-compatible Valkey only if the application supports it. |
| Named or bind-mounted volume | Requires an application-supported durable alternative or another platform. |
| `depends_on` | Plan provisioning order and application retries; no implied readiness translation. |
| Local network alias | Replace with returned dependency endpoints and verify TLS/DNS behavior. |
| Privileged mode or Docker socket | Stop and assess another deployment model. |

Use the upstream application's versioned deployment documentation. Do not silently drop services, startup scripts, required mounted configuration or license restrictions to make it appear compatible.

## Build context and Dockerfile are different paths

Docker `COPY` reads from the build context. SpringWinter's `root_directory` chooses that context; `dockerfile_path` remains relative to the repository root. For the public React/FastAPI template in its original monorepo:

| Setting | Value |
| - | - |
| Root directory | `react-fastapi/backend` |
| Dockerfile path | `react-fastapi/backend/Dockerfile` |
| Port and health path | `8000`, `/health` |

Reproduce that build from the template checkout root:

```bash theme={null}
docker build -f react-fastapi/backend/Dockerfile \
  -t springwinter-fastapi react-fastapi/backend
```

Read [Docker build contexts](https://docs.docker.com/build/concepts/context/) for how `COPY`, `.dockerignore` and context boundaries work. A context error is not fixed by adding credentials to the image.

## Working examples and deployment methods

Use a new checkout of [templates v0.1.0](https://github.com/SpringWinter-Research/templates/tree/v0.1.0). The five examples include committed Dockerfiles and locked dependencies. Follow each README for unit tests before building. Unit tests use fake dependencies or explicitly unreachable test targets, not existing databases.

For the dashboard, select a web server or worker, choose its supported source, set context and command, and configure required variables privately. Public image web servers have runtime settings only. For GitHub builds, build and runtime variables are separate. Declare matching Dockerfile `ARG` instructions for build settings, and do not use those settings as a secret channel.

For Codex, Claude Code or Cursor, use the [agent guide](https://docs.springwinter.dev/guides/coding-agents.md) and approve the complete translated architecture first. REST automation must use the current [resource API](https://docs.springwinter.dev/api-reference/overview.md), not a guessed Compose endpoint. A command override replaces the image command; review the image entrypoint before relying on the result.

## Verify application behavior

Observe the exact workflow. Confirm the running revision, task health, returned HTTPS URL and representative application behavior. For a worker, verify a harmless synthetic job and durable result. For stateful apps, verify promised state after approved task replacement and old-task drain.

| Failure | First check |
| - | - |
| Cannot find files during build | Context, Dockerfile path and `.dockerignore`. |
| Image starts locally but not in AWS | Target image architecture, entrypoint, required files and runtime variables. |
| Unhealthy web task | Bind address `0.0.0.0`, configured port and HTTP health response without login. |
| Data disappears | Application writing to the container or temporary task volume. |
| Redis `MOVED` or TLS errors | Cluster-aware client, database 0, endpoint and verified certificate trust. |

See [deployment troubleshooting](https://docs.springwinter.dev/troubleshooting/deployments.md) before retrying or widening permissions.

## Production, costs and cleanup

Pin images, scan dependencies, run as an unprivileged user when possible and keep secrets out of build layers. Add authentication before exposing a first-run administrator setup. Backups and restore tests are separate from the image build.

Estimate all translated resources with [cost estimation](https://docs.springwinter.dev/guides/cost-estimation.md), including compute, shared load balancing, data services, builds, logs and transfer. One Compose file does not imply one resource's cost. There is no universal Docker hosting price.

Approve cleanup in dependency order and decide whether data snapshots and objects must remain. No AWS deployment success is inferred from a successful local or hosted image build.

## Questions

**Can I paste Compose YAML into the API?** No. This guide maps supported pieces individually and stops at unsupported requirements.

**Can I mount the Docker socket?** This is not a supported general container runtime feature. Use a suitable isolated build/compute service instead.

Related: [Next.js](https://docs.springwinter.dev/deploy/nextjs.md), [React and FastAPI](https://docs.springwinter.dev/deploy/frameworks/react-fastapi.md), [Node.js and Rails](https://docs.springwinter.dev/deploy/frameworks/node-rails.md), [workers](https://docs.springwinter.dev/guides/ai-backends-workers.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.