Running the server in Docker
The Docker/ folder of the repository contains everything needed to run
the server in a Linux container: a small Alpine image, an entry point that
creates a configuration on first start, and a Compose file. Atlant Security
does not publish a container image, so you build it from a Linux binary.
Build the image
- Build a Linux binary of the
release you want and copy it to
Docker/bin/velociraptor. - Build the image:
cd Docker
docker build -t atlantiraptor-server .
- In
compose.yaml, setimage:toatlantiraptor-server(the file in the repository still names the upstream image).
Configure and start
Compose reads its settings from a .env file next to compose.yaml:
VELOCIRAPTOR_HOSTNAME=atlantiraptor.example.com
VELOCIRAPTOR_FRONTEND_PORT=8000
VELOCIRAPTOR_GUI_PORT=8889
VELOCIRAPTOR_DATASTORE_PATH=/datastore
VELOCIRAPTOR_CONFIG_PATH=/etc/velociraptor
VELOCIRAPTOR_INITIAL_ADMIN_PASSWORD=change-me-now
Then start it:
docker compose up -d
docker compose logs -f
On the first start, the entry point:
- generates a server configuration with self-signed certificates for
VELOCIRAPTOR_HOSTNAMEand stores it in./etc/(mounted at/etc/velociraptor/), - keeps all data in
./datastore/(mounted at/datastore/), so it survives container restarts and upgrades, - creates an
adminuser with the initial password from.env, - builds agent packages (MSI, Debian and RPM) with this server’s configuration, which you can then download from the server.
Sign in at https://<host>:8889/, change the password at once and set up
two-factor sign in.
Use an existing configuration
To run an existing deployment in a container, put its
server.config.yaml into ./etc/ before the first start and match the
ports in .env to the configuration. The entry point uses the file as is.
Upgrade
Build a new image from the new binary, then:
docker compose down
docker compose up -d
The configuration and data stay in the mounted folders.
Things to keep in mind
- Back up
./etc/. It holds the CA and server keys. Agents can only talk to a server with the same keys. - The container’s port mapping and
Frontend.hostnamemust match what agents use: if you publish the frontend on port 443, regenerate or edit the configuration so the agents’server_urlsuse 443 too. - Automatic server updates only install on Windows. Containers are upgraded by rebuilding the image.
- For certificates other than self-signed, see TLS certificates.