diff --git a/install/homebox-install.sh b/install/homebox-install.sh
index f0d1c8cd6..6548e7607 100644
--- a/install/homebox-install.sh
+++ b/install/homebox-install.sh
@@ -26,6 +26,12 @@ msg_info "Installing Homebox"
 RELEASE=$(curl -s https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
 wget -qO- https://github.com/sysadminsmedia/homebox/releases/download/${RELEASE}/homebox_Linux_x86_64.tar.gz | tar -xzf - -C /opt
 chmod +x /opt/homebox
+cat <<EOF >/opt/.env
+# For possible environment variables check here: https://homebox.software/en/configure-homebox
+HBOX_MODE=production
+HBOX_WEB_PORT=7745
+HBOX_WEB_HOST=0.0.0.0
+EOF
 echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
 msg_ok "Installed Homebox"
 
@@ -38,6 +44,7 @@ After=network.target
 [Service]
 WorkingDirectory=/opt
 ExecStart=/opt/homebox
+EnvironmentFile=/opt/.env
 Restart=on-failure
 
 [Install]
diff --git a/json/homebox.json b/json/homebox.json
index d75856ab5..cc55634db 100644
--- a/json/homebox.json
+++ b/json/homebox.json
@@ -30,5 +30,10 @@
         "username": null,
         "password": null
     },
-    "notes": []
-}
\ No newline at end of file
+    "notes": [
+        {
+            "text": "env file location: `/opt/.env`",
+            "type": "info"
+        }
+    ]
+}