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
Copy file name to clipboardExpand all lines: README.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,62 @@ Envelope Zero is fundamentally rooted in two ideas:
5
5
- Using the [envelope method](https://en.wikipedia.org/wiki/Envelope_system) to budget expenses into envelopes.
6
6
- Zero Based Budeting, meaning that you assign all your money to an envelope. Saving for a vacation? Create an envelope and archive it after your vacation. Rent? Create an envelope that gets a fixed amount of money added every month.
7
7
8
+
## Usage
9
+
10
+
The recommended and only supported way for production deployments is to run the backend with [the OCI image](https://github.com/envelope-zero/backend/pkgs/container/backend).
11
+
12
+
### Deployment methods
13
+
14
+
If you want to deploy with a method not listed here, you are welcome to open a discussion to ask any questions needed so that this documentation can be improved.
15
+
16
+
#### On Kubernetes
17
+
18
+
You can run the backend on any Kubernetes cluster with a supported version using the [morremeyer/generic]() helm chart with the following values:
19
+
20
+
```yaml
21
+
image:
22
+
repository: ghcr.io/envelope-zero/backend
23
+
tag: v0.2.1
24
+
25
+
# Only set this when you want to use sqlite as database backend.
26
+
# In this case, you need to make sure the database is regularly backed up!
27
+
persistence:
28
+
enabled: true
29
+
mountPath: /app/data
30
+
31
+
ports:
32
+
- name: http
33
+
containerPort: 8080
34
+
protocol: TCP
35
+
36
+
ingress:
37
+
enabled: true
38
+
hosts:
39
+
- host: envelope-zero.example.com
40
+
paths:
41
+
- path: /api
42
+
tls:
43
+
- hosts:
44
+
- envelope-zero.example.com
45
+
```
46
+
47
+
### Database backends
48
+
49
+
Envelope Zero currently supports sqlite and postgresql as database backends. While sqlite is supported, it is highly recommended to use postgresql for production purposes.
50
+
51
+
#### sqlite
52
+
53
+
No configuration is needed, but you need to mount a persistent volume to the `/app/data` directory or the backend won’t start.
54
+
55
+
#### postgresql
56
+
57
+
Set the following environment variables:
58
+
59
+
- `DB_HOST`: The hostname for the postgresql instance
60
+
- `DB_USER`: The username to connect with
61
+
- `DB_PASSWORD`: The password for `DB_USER`
62
+
- `DB_NAME`: The name of the database to use
63
+
8
64
## Supported Versions
9
65
10
66
This project is under heavy development. Therefore, only the latest release is supported.
0 commit comments