Skip to content

aguslr/docker-ankiweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-pulls image-size

This Docker image sets up AnkiWeb inside a docker container.

AnkiWeb is a free companion to the computer version of Anki. AnkiWeb can be used to review online when you don't have access to your home computer, and can be used to keep your cards synchronized across multiple machines

Installation

To use docker-ankiweb, follow these steps:

  1. Clone and start the container:

    docker run -p 8080:8080 \
      -e SYNC_USER1=user@example.org:pass1 \
      -v ./data:/data \
      docker.io/aguslr/ankiweb:latest
    
  2. On your Anki app, go to Preferences > Syncing and enter http://127.0.0.1:8080 as the self-hosted sync server.

  3. Log In with your credentials user@example.org and pass1.

Variables

The image is configured using environment variables passed at runtime:

Variable Function Default Required
SYNC_HOST IP address to listen on 127.0.0.1 N
SYNC_PORT Port to listen on 8080 N
SYNC_BASE Directory to store data /data N
PASSWORDS_HASHED Whether to use hashed passwords 0 N
SYNC_USER1 First user's username:password EMPTY Y
SYNC_USER<N> <N> user's username:password EMPTY N
MAX_SYNC_PAYLOAD_MEGS Upload limit in MB 100 N

Build locally

Instead of pulling the image from a remote repository, you can build it locally:

  1. Clone the repository:

    git clone https://github.com/aguslr/docker-ankiweb.git
    
  2. Change into the newly created directory and use docker-compose to build and launch the container:

    cd docker-ankiweb && docker-compose up --build -d
    

About

Set up AnkiWeb to sync Anki decks over the network

Topics

Resources

License

Stars

Watchers

Forks

Contributors