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
+26-11Lines changed: 26 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,32 @@ Also uses `curl` to call AnkiConnect. It forces a sync and optionally reschedule
37
37
38
38
---
39
39
40
+
## How to run
41
+
42
+
If you want you can run this using the image `mlcivilengineer/anki-desktop-docker` which is automatically built using Github Actions in this repo. Use the following command:
43
+
```bash
44
+
docker run -d \
45
+
--name anki-desktop \
46
+
-e PUID=1000 \
47
+
-e PGID=1000 \
48
+
-v "$(pwd)/anki_data:/config" \
49
+
-p 3000:3000 \
50
+
-p 8765:8765 \
51
+
mlcivilengineer/anki-desktop-docker:latest
52
+
```
53
+
54
+
Then open your browser and head to:
55
+
56
+
```
57
+
http://localhost:3000
58
+
```
59
+
60
+
Press Enter after Anki is installed for the first time. Now you can use it as normal. In order to sync with the other clients, put your sync information in the Sync tab.
61
+
62
+
40
63
## Docker Compose Setup
41
64
42
-
Use the `docker-compose.yml` in the root of the repo:
65
+
If you prefer docker compose instead, use the `docker-compose.yml` in the root of the repo:
43
66
```yaml
44
67
services:
45
68
anki-desktop:
@@ -50,7 +73,7 @@ services:
50
73
- PUID=1000
51
74
- PGID=1000
52
75
volumes:
53
-
- ./config:/config
76
+
- ./anki_data:/config
54
77
ports:
55
78
- 3000:3000# Web UI
56
79
- 8765:8765# AnkiConnect
@@ -62,17 +85,9 @@ To get started:
62
85
```bash
63
86
git clone <this-repo>
64
87
cd anki-desktop-docker
65
-
docker compose up --build -d
66
-
```
67
-
68
-
Then open your browser and head to:
69
-
70
-
```
71
-
http://localhost:3000
88
+
docker compose up -d
72
89
```
73
90
74
-
Press Enter after Anki is installed for the first time. Now you can use it as normal. In order to sync with the other clients, put your sync information in the Sync tab.
0 commit comments