Skip to main content

Deployment

Quick Start

cp agent/.env.example agent/.env
# edit agent/.env with your Yacht server URL and enrollment token
docker compose -f agent/docker-compose.yaml up -d

Environment Variables

VariableRequiredDescription
YACHT_SERVER_URLYesBase URL of your Yacht server
YACHT_AGENT_ENROLLMENT_TOKENYesEnrollment token from Yacht server settings
YACHT_AGENT_NAMENoDisplay name for the agent host
YACHT_AGENT_VERIFY_SSLNoSet false for self-signed certs
YACHT_AGENT_HEARTBEAT_INTERVALNoHeartbeat interval in seconds
YACHT_AGENT_JOB_POLL_INTERVALNoJob poll interval in seconds
YACHT_AGENT_VERSIONNoAgent version string

Docker Socket

The agent requires access to the local Docker socket.

volumes:
- /var/run/docker.sock:/var/run/docker.sock