rpi3-configurations/global/containers.nix

49 lines
1015 B
Nix
Raw Normal View History

2023-07-18 13:52:59 +00:00
{
virtualisation = {
podman.enable = true;
oci-containers.backend = "podman";
oci-containers.containers = {
wsproxy = {
login.username = "senseab";
login.registry = "ghcr.io";
login.passwordFile = "/var/lib/secrets/podman/ghcr.io"; # should create it manually.
image = "ghcr.io/senseab/wsproxy:master";
autoStart = true;
environment = {
CONFIG_NO_TLS_VERIFY = "true";
CONFIG_ADDR = "wss://dev.wetofu.me/path";
WSPROXY_MODE = "client";
};
ports = [
"1089:1089"
];
};
2023-07-23 10:11:33 +00:00
zeronet = {
2023-07-18 13:52:59 +00:00
autoStart = true;
dependsOn = [ "wsproxy" ];
2023-07-23 10:11:33 +00:00
image = "supersandro2000/zeronet:0.7.2";
2023-07-18 13:52:59 +00:00
ports = [
2023-07-23 10:11:33 +00:00
"26552:26552"
"43110:43110"
2023-07-18 13:52:59 +00:00
];
environment = {
2023-07-23 10:11:33 +00:00
ENABLE_TOR = "false";
2023-07-23 10:14:34 +00:00
#UI_PASSWORD = "12345678";
2023-07-18 13:52:59 +00:00
};
volumes = [
2023-07-23 10:21:51 +00:00
"/var/lib/zeronet:/app/data"
2023-07-18 13:52:59 +00:00
];
2023-07-23 10:11:33 +00:00
};
2023-07-18 13:52:59 +00:00
};
};
}