1
0
Fork 0
dotfiles/container/flaresolverr/default.nix

28 lines
659 B
Nix
Raw Normal View History

2023-05-21 22:56:05 +00:00
{ lib, ... }:
{
virtualisation.oci-containers.containers.flaresolverr = {
image = "ghcr.io/flaresolverr/flaresolverr:latest";
ports = [ "192.168.42.2:8191:8191" ];
environment = {
"HOST" = "192.168.42.2";
"PORT" = "8191";
"LOG_LEVEL" = "info";
};
extraOptions = [
"--network=ns:/var/run/netns/wg"
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
};
systemd.services.podman-flaresolverr = {
bindsTo = [ "wg.service" ];
after = lib.mkForce [ "wg.service" ];
serviceConfig = {
TimeoutStopSec = lib.mkForce 10;
};
};
}