ma ham/signal-rest: init

This commit is contained in:
makefu 2021-03-12 20:32:54 +01:00
parent 1da12adf03
commit 46c9132c5a
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -0,0 +1,18 @@
let
port = 8631;
image = "bbernhard/signal-cli-rest-api:latest";
config = "/var/lib/signal-cli-config";
in {
systemd.tmpfiles.rules = [
"d ${config} docker docker - -"
];
state = [ config ];
virtualisation.oci-containers.containers.signal-rest = {
image = image;
ports = [ "127.0.0.1:${toString port}:8080" ];
volumes = [
"${config}:/home/.local/share/signal-cli"
];
};
}