fix openhab
This commit is contained in:
@@ -15,17 +15,21 @@ in {
|
|||||||
containers = {
|
containers = {
|
||||||
server = builder.mkContainer {
|
server = builder.mkContainer {
|
||||||
subdomain = containerCfg.subdomain;
|
subdomain = containerCfg.subdomain;
|
||||||
image = "openhab/openhab:${version}";
|
image = "openhab/openhab:${version}-debian";
|
||||||
port = 8080;
|
port = 8080;
|
||||||
extraEnv = {
|
extraEnv = {
|
||||||
"USER_ID" = "1000";
|
USER_ID = "1000";
|
||||||
"GROUP_ID" = "1000";
|
GROUP_ID = "1000";
|
||||||
"CRYPTO_POLICY" = "unlimited";
|
CRYPTO_POLICY = "unlimited";
|
||||||
"OPENHAB_HTTP_PORT" = "8080";
|
OPENHAB_HTTP_PORT = "8080";
|
||||||
};
|
};
|
||||||
|
extraOptions = [
|
||||||
|
"--network=host"
|
||||||
|
];
|
||||||
overrides = {
|
overrides = {
|
||||||
volumes = [
|
volumes = [
|
||||||
"${serverCfg.configPath}/openhab:/openhab"
|
"${serverCfg.configPath}/openhab/conf:/openhab/conf"
|
||||||
|
"${serverCfg.configPath}/openhab/userdata:/openhab/userdata"
|
||||||
"${serverCfg.configPath}/openhab/addons:/opt/openhab/addons"
|
"${serverCfg.configPath}/openhab/addons:/opt/openhab/addons"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user