/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: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).
- Docker Compose
- Kubernetes
An app in the same file sends to the service name
magpie:tests/hardening.rs).
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.