Standalone Mode
Standalone mode runs the server and agent in a single process. It is published as a container image:
docker pull ghcr.io/trailer-dev/standalone:latestThe ghcr.io/trailer-dev registry path is set at release time. Your deployment’s registry and organization may differ. Adjust the image reference to match where your images are published.
This is the simplest way to run Trailer.dev on a single machine: one process is both the control plane and the host that runs workspaces.
Startup order
Section titled “Startup order”The standalone process starts the server first, waits until it is ready, then starts the agent. Both run for the lifetime of the process.
sequenceDiagram
participant P as Standalone process
participant Srv as Server
participant Ag as Agent
P->>Srv: start server
Srv-->>P: ready
P->>Ag: start agent
Ag->>Srv: connect and reconcile
Configuration
Section titled “Configuration”Standalone shares the same configuration file (default ~/.config/trailer.dev/config.yml) and flags as the separate modes. The most relevant flags:
| Flag | Default | Purpose |
|---|---|---|
--server-url, -S | http://localhost:8090 | Server bind address. The agent connects to the same URL. |
--data-directory, -d | trailer_data | Server database directory. |
--build-directory, -b | /tmp | Directory used when building images. |
There is no environment-variable binding for these flags. The server-only TRAILER_* settings (admin bootstrap, SMTP, backups, file storage) still apply here. See Environment variables.
Minimal config.yml:
server_url: http://0.0.0.0:8090data_directory: trailer_dataRunning standalone mode
Section titled “Running standalone mode”Expose the port and mount the Docker socket so the built-in agent can manage containers. Add --gpus all for NVIDIA GPU passthrough:
docker run -d \ -p 8090:8090 \ -v /var/run/docker.sock:/var/run/docker.sock \ --gpus all \ ghcr.io/trailer-dev/standalone:latest