added homeassistant init container

This commit is contained in:
gyurix
2024-10-19 11:10:41 +02:00
parent efd9e5445e
commit 207dbd7f41
2 changed files with 17 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
{
"main": {
"SERVICE_NAME": "homeassistant",
"DOMAIN": "DOMAIN"
"DOMAIN": "HOMEASSISTANT_DOMAIN"
},
"containers": [
{
"IMAGE": "alpine:latest",
"IMAGE": "registry.format.hu/homeassistant-init-container",
"UPDATE": "true",
"NAME": "homeassistant-init",
"NETWORK": "host",
@@ -15,13 +15,25 @@
"SOURCE": "USER_DATA",
"DEST": "/etc/user/data",
"TYPE": "rw"
},
{
"SOURCE": "SYSTEM_DATA",
"DEST": "/etc/system/data/dns/host.local",
"TYPE": "rw"
}
],
"ENVS": [
{
"DOMAIN": "HOMEASSISTANT_DOMAIN"
},
{
"HOMEASSISTANT": "homeassistant"
}
],
"EXTRA": "--rm",
"DEPEND": "null",
"START_ON_BOOT": "false",
"ENTRYPOINT": "sh -c",
"CMD": "mkdir -p /etc/user/data/homeassistant/config",
"CMD": "null",
"PRE_START": "null",
"POST_START": "null"
},
@@ -57,7 +69,6 @@
"CMD": "null",
"PRE_START": "null",
"POST_START": [
"firewall-homeassistant",
"domain-homeassistant"
]
}

View File

@@ -10,7 +10,7 @@
{
"description": "Please add your homeassistant timezone:",
"key": "HOMEASSISTANT_TZ",
"value": "",
"value": "Europe/Budapest",
"required": "true"
}
]