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
To avoid data-loss it is important for you to backup your application data.
5
+
6
+
The markdown files are stored in the apps data location which will also include the database if you decided to use sqlite. If you used a database server (PostgreSQL and MariaDB) you will need to perform a database dump. This is important as metadata and user details are stored there.
Both the backend and frontend are distributed by as Docker images, making deployment easier.
7
+
8
+
Below are the image names:
9
+
10
+
```text
11
+
ghcr.io/enchant97/note-mark-backend
12
+
13
+
ghcr.io/enchant97/note-mark-frontend
14
+
```
15
+
16
+
The following labels are available:
17
+
18
+
> *TIP* Image labels follow Semantic Versioning
19
+
20
+
```text
21
+
<major>
22
+
23
+
<major>.<minor>
24
+
25
+
<major>.<minor>.<patch>
26
+
```
27
+
28
+
Deploying both apps can be done using Docker Compose, shown below:
29
+
30
+
> *TIP* Using a reverse proxy can allow you to have the app on a single domain & port
31
+
32
+
```yaml
33
+
# file: docker-compose.yml
34
+
version: "3"
35
+
36
+
volumes:
37
+
data:
38
+
39
+
services:
40
+
backend:
41
+
image: ghcr.io/enchant97/note-mark-backend:0.6.
42
+
restart: unless-stopped
43
+
volumes:
44
+
- data:/data
45
+
environment:
46
+
# !!! REPLACE These !!!
47
+
JWT_SECRET: "bXktc2VjcmV0"
48
+
CORS_ORIGINS: "*"
49
+
ports:
50
+
- 8001:8000
51
+
52
+
frontend:
53
+
image: ghcr.io/enchant97/note-mark-frontend:0.6
54
+
restart: unless-stopped
55
+
ports:
56
+
- 8000:8080
57
+
```
58
+
59
+
Once running you should be able to visit at 8000 and see the UI. Navigate to the login page and change the port to 8001 and append `/api`. These steps would not be required if you ran the app over the same FQDN and port (using a reverse proxy).
0 commit comments