You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[HomeBox](https://github.com/sysadminsmedia/homebox) is a self-hosted home inventory and organization app (SQLite, low resource use). This stack runs the maintained **`ghcr.io/sysadminsmedia/homebox`** image (continuation of the original hay-kot project).
3
+
[HomeBox](https://github.com/sysadminsmedia/homebox) is a self-hosted home inventory and organization app. This stack runs the maintained **`ghcr.io/sysadminsmedia/homebox`** image and uses the **shared PostgreSQL** service (`postgresql` on `postgres-net`) for the database; uploads and `config.yml` stay on **`../../lib/homebox`** (mounted at `/data`).
4
4
5
5
## Configuration
6
6
7
-
### Environment
7
+
### 1. PostgreSQL database
8
8
9
-
Copy `.env.example` to `.env`:
9
+
Create a dedicated database and user with the shared cluster helper (from **`apps/postgresql`**):
10
10
11
11
```bash
12
-
cp .env.example .env
12
+
../../apps/postgresql/bin/mkdb.sh homebox
13
13
```
14
14
15
-
Set `IMAGE_VERSION` if you want to pin a tag other than `latest` (see [GHCR packages](https://github.com/sysadminsmedia/homebox/pkgs/container/homebox)).
16
-
17
-
Additional runtime tuning can use `HBOX_*` variables; see the [HomeBox documentation](https://homebox.software/).
15
+
That creates **`homebox_db`** owned by **`homebox_user`** and prints a password. Put that password in **`.env`** as **`HBOX_DATABASE_PASSWORD`** (see `.env.example`).
18
16
19
-
### Config file (required)
17
+
### 2. Environment
20
18
21
-
The image expects**`/data/config.yml`**on the persistent volume (same directory as the SQLite database).
19
+
Copy `.env.example` to**`.env`**and set **`HBOX_DATABASE_PASSWORD`** (and **`IMAGE_VERSION`** if you pin a tag).
22
20
23
-
1. Ensure the data directory exists (repository convention):
21
+
```bash
22
+
cp .env.example .env
23
+
```
24
24
25
-
```bash
26
-
mkdir -p ../../lib/homebox
27
-
```
25
+
### 3. Config file (required)
28
26
29
-
2. Install the config once:
27
+
The image expects **`/data/config.yml`** on the persistent volume.
Edit **`../../lib/homebox/config.yml`** if you change DB name, user, host, or TLS. By default it targets **`postgresql:5432`** with **`ssl_mode: disable`** on the internal Docker network.
36
35
37
-
For **`latest-rootless`** or **`latest-hardened`**, the upstream image may require ownership on `/data` (e.g. `chown 65532:65532`); see the [HomeBox quick start](https://homebox.software/en/quick-start/).
36
+
For **`latest-rootless`** or **`latest-hardened`**, see the [HomeBox quick start](https://homebox.software/en/quick-start/) for `/data` ownership (e.g. `chown 65532:65532`).
38
37
39
38
## Networks
40
39
41
-
-**`nginx-proxy-net`** — attach your reverse proxy vhost to the container’s internal port **7745**.
0 commit comments