Skip to main content
The store is in the volume /data. In the container the server listens on 0.0.0.0, so the published ports reach it; -p 127.0.0.1:... keeps it on this machine. docker stop sends SIGTERM, and the server closes the store. To build the same image from the sources (some minutes), run docker build -t magpie-server . in the repo root, then docker run ... magpie-server. What the image holds and which flags it sets: Server flags, “Docker”.

Open it to other machines

Add API keys and TLS. Arguments after the image name are added to the server’s flags:
How to make the key file and the certificate: Secure the server.

Give the service name

With no keys, the image’s host check is on: localhost and IP addresses pass, and a service name must be given with --allowed-host. With keys there is no host check (Host names).
An app in the same file sends to the service name magpie:
These two files were not run (no Docker or Kubernetes on the test machine). The host rule they need is tested on the binary (tests/hardening.rs).
On a network that other people reach, use --auth keys and TLS, not the host check alone.

Settings that matter

Secure the server

Turn on API keys and TLS.

Tenants

One store per customer.

Store on S3

Keep the store in a bucket too.