Skip to content

Standalone Mode

The standalone mode combines server and agent functionality in a single container. It's available as a pre-built container:

bash
docker pull ghcr.io/trailer-dev/trailer:latest

Features

  • Combined server and agent
  • Simplified deployment
  • Local resource management
  • Development features
  • Single container operation

Configuration

Environment Variables

bash
TRAILER_SERVER_PORT=8090
TRAILER_SERVER_HOST=0.0.0.0
TRAILER_AGENT_TYPE=docker
TRAILER_AGENT_DOCKER_SOCKET=/var/run/docker.sock
TRAILER_AUTH_ENABLED=true
TRAILER_AUTH_PROVIDER=local

Configuration File

yaml
server:
  port: 8090
  host: 0.0.0.0

agent:
  type: docker
  docker:
    socket: /var/run/docker.sock

security:
  auth:
    enabled: true
    provider: local

Running Standalone Mode

bash
docker run -d \
  -p 8090:8090 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  --gpus all \
  ghcr.io/trailer-dev/trailer:latest

Resource Management

  • Container lifecycle
  • Network configuration
  • Volume management
  • GPU allocation
  • Resource monitoring

Security

  • Local authentication
  • Resource isolation
  • Web interface security
  • Socket permissions

Development Features

  • Real-time updates
  • Resource monitoring
  • Development tools

Deployment Considerations

  • Docker socket access
  • GPU support
  • Port availability
  • Resource limits
  • Network configuration

Released under the MIT License.