rpi3-configurations/global/containers.nix

50 lines
1016 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
2023-07-23 10:40:12 +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:40:12 +00:00
"26552:26552"
"43110:43110"
2023-07-18 13:52:59 +00:00
];
environment = {
2023-07-23 10:40:12 +00:00
ENABLE_TOR = "false";
#UI_PASSWORD = "12345678";
2023-07-18 13:52:59 +00:00
};
volumes = [
2023-07-23 10:40:12 +00:00
"/var/lib/zeronet:/app/data"
2023-07-18 13:52:59 +00:00
];
2023-07-23 10:40:12 +00:00
};
2023-07-23 10:11:33 +00:00
2023-07-18 13:52:59 +00:00
};
};
}
2023-07-23 10:39:51 +00:00