Anki Sync Server is a lightweight, efficient, self-hosted alternative to AnkiWeb for synchronizing your Anki decks across devices.
This Dockerized version is built on the original Anki Sync Server, offering an easy-to-deploy, privacy-friendly solution.
- 🪶 Lightweight: Minimal image size (< 50MB) based on Distroless.
- ⚙️ Easy Deployment: Set up quickly with Docker Compose.
- 🛡️ Privacy-First: Your data stays with you.
Run the server locally or on your homelab. Expose it to the internet securely using:
- An NGINX reverse proxy, or
- A reverse SSH tunnel.
Ensure the following are installed:
-
Clone the repository:
git clone https://github.com/EvanDufraisse/anki-sync-server.git cd anki-sync-server -
Configure environment variables:
cp .env_example .env
Edit
.env:HOST_PORT=27701 # Port on the host USERNAME1=admin # First user PASSWORD1=admin # User password ANKI_FILES_PATH=/path/to/anki/storage # Path to Anki storage
Adding multiple-users should be straitghforward see the official documentation
-
Build and run the server:
docker-compose down && docker-compose up -d -
Verify the container is healthy:
docker container ls | grep anki-sync-serverDebug if necessary:
docker logs anki-sync-server
- Add support for password hashing.
This project is licensed under the MIT License. See the LICENSE file for details.
- Anki - The intelligent flashcard program that makes remembering easy.