Binary Installation
For more control, install the binary directly on your server.
1. One-Line Installer
curl -fsSL https://get.docka.dev | bash
2. Manual Download
# Linux AMD64
curl -fsSL https://github.com/docka-dev/docka-releases/releases/latest/download/docka-linux-amd64.tar.gz | tar xz
sudo mv docka /usr/local/bin/
# Linux ARM64
curl -fsSL https://github.com/docka-dev/docka-releases/releases/latest/download/docka-linux-arm64.tar.gz | tar xz
sudo mv docka /usr/local/bin/
# macOS
brew install docka-dev/tap/docka
3. Create Systemd Service
# /etc/systemd/system/docka.service
[Unit]
Description=Docka Server
After=network-online.target postgresql.service redis.service
Wants=network-online.target
[Service]
Type=simple
User=docka
Group=docka
EnvironmentFile=/etc/docka/env
ExecStart=/usr/local/bin/docka
Restart=always
RestartSec=10
# Security hardening
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target
4. Enable and Start
# Create docka user
sudo useradd -r -s /bin/false docka
# Create config directory
sudo mkdir -p /etc/docka
sudo chmod 600 /etc/docka/env
# Enable and start service
sudo systemctl daemon-reload
sudo systemctl enable docka
sudo systemctl start docka
# Check status
sudo systemctl status docka