Coder Social home page Coder Social logo

docker-anki-server's Introduction

docker-anki-server

Dockerfile which runs Anki's built-in Self-Hosted Sync Server.

Usage

Run this in Docker or Kubernetes with users passed in as environment variables.

docker run -it --rm \
  -e SYNC_USER1=myusername:mypasswd -p 80:8080 \
  ghcr.io/dli7319/docker-anki-server:main

For persistence, mount a volume to /home/anki/.syncserver/

Note that Anki does not provide a web interface.

Example Kubernetes deployment

apiVersion: apps/v1
kind: Deployment
metadata:
  name: anki
  labels:
    app: anki
spec:
  replicas: 1
  selector:
    matchLabels:
      pod-label: anki-pod
  template:
    metadata:
      labels:
        pod-label: anki-pod
    spec:
      containers:
        - name: anki
          image: ghcr.io/dli7319/docker-anki-server:main
          imagePullPolicy: Always
          envFrom:
            - secretRef:
                name: anki-secret
          volumeMounts:
            - name: anki-storage
              mountPath: /home/anki/.syncserver
          ports:
            - containerPort: 8080
      volumes:
        - name: anki-storage
          persistentVolumeClaim:
            claimName: anki-pvc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.