Skip to content

Commit a217cd6

Browse files
committed
Add compose file
1 parent ff401a0 commit a217cd6

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ However, when this repository was created, there wasn't any official Docker imag
99
server which encouraged me to publish my own. It is based on the Rust sync server. The official
1010
documentation can be found [here](https://docs.ankiweb.net/sync-server.html).
1111

12-
I highly recommend using a reverse proxy to ensure a secure connection.
12+
I highly recommend using a reverse proxy to ensure a secure connection. You can start off with
13+
my compose configuration.
1314

1415
## Environment Variables
1516

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: "3"
2+
3+
services:
4+
anki-sync-server:
5+
image: anki
6+
container_name: Anki-Sync-Server
7+
environment:
8+
SYNC_USER1: anki:ikna
9+
SYNC_BASE: /data
10+
SYNC_HOST: 0.0.0.0
11+
SYNC_PORT: 8080
12+
volumes:
13+
- ./data:/data
14+
restart: unless-stopped

0 commit comments

Comments
 (0)