add element-web container
This commit is contained in:
parent
dfb4fc3340
commit
920fdd7504
3 changed files with 31 additions and 0 deletions
|
@ -75,3 +75,8 @@ grafana.cything.io {
|
|||
import common
|
||||
reverse_proxy localhost:8088
|
||||
}
|
||||
|
||||
element.cything.io {
|
||||
import common
|
||||
reverse_proxy localhost:8089
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
./ghost.nix
|
||||
./conduit.nix
|
||||
./immich.nix
|
||||
./element.nix
|
||||
];
|
||||
|
||||
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
|
||||
|
|
25
hosts/chunk/element.nix
Normal file
25
hosts/chunk/element.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
virtualisation.oci-containers.containers.element = {
|
||||
image = "vectorim/element-web";
|
||||
autoStart = true;
|
||||
ports = [ "127.0.0.1:8089:80" ];
|
||||
pull = "newer";
|
||||
networks = [ "element-net" ];
|
||||
};
|
||||
|
||||
systemd.services.create-element-net = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
wantedBy = with config.virtualisation.oci-containers; [
|
||||
"${backend}-element.service"
|
||||
];
|
||||
script = ''
|
||||
${pkgs.podman}/bin/podman network exists element-net || \
|
||||
${pkgs.podman}/bin/podman network create element-net
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue