wzf03 / KindleEar-Docker

kindleear's docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KindleEar-Docker

kindleear's docker image

Usage

docker-compose (recommended)

create docker-compose.yml in a new directory

version: "3"
services:
  kindleear:
    image: ghcr.io/wzf03/kindleear:latest
    container_name: kindleear
    ports:
      - 8080:8080
    volumes:
      - ./data:/app/data
    restart: unless-stopped

crate config.json in the data directory you created

{
    // Necessary
    "email": "youremail",
    "smtpServer": "smtp.example.com",
    "smtpPort": 587,
    "smtpPassword": "password",
    "domain": "http://example.com"
}

then run the container using docker-compose

docker-compose up -d

docker cli

create a config.json like above, then

docker run -d \
  --name=kindleear \
  -p 8080:8080 \
  -v ./data:/app/data \
  --restart unless-stopped \
  ghcr.io/wzf03/kindleear:latest

Note

  • Use crontab to support scheduled delivery
  • Also support configuration through environment variable to be compatible with older version
  • Known problem: database cannot be saved after the container stop

About

kindleear's docker image

License:GNU General Public License v3.0


Languages

Language:Python 64.5%Language:Dockerfile 35.5%