I have wrapped it into a Docker image which anyone can quickly use.
Docker Hub
https://hub.docker.com/r/andrey01/pubkv/
Live Demo
http://asciinema.org/a/br1h2k4a6alp1hs93w2xy2gay
Future
I think that it could be a nice store feature to Docker. So that instead of mounting configuration files as volumes (-v), we could use something like:
services:
nginx:
pubkv:
nginx.conf: /etc/nginx/nginx.conf
pubkv: host: localhost
port: 10080
uuid: 12834dff-d27d-48b0-95f3-bae967a6b048
just an example. (docker-compose v2 format is assumed)