版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
languageyml
services:
  vikunja:
    image: vikunja/vikunja
    container_name: vikuja
    restart: unless-stopped
    environment:
      - VIKUNJA_SERVICE_JWTSECRET=6dd20e6f597767ffa1c78538b380505aef20
      - VIKUNJA_SERVICE_PUBLICURL=https://wekan.waringid.me/
      - VIKUNJA_DATABASE_TYPE=postgres
      - VIKUNJA_DATABASE_HOST=db
      - VIKUNJA_DATABASE_PASSWORD=98b1657fff81a8c
      - VIKUNJA_DATABASE_USER=vikunja
      - VIKUNJA_DATABASE_DATABASE=vikunja
      - VIKUNJA_MAILER_ENABLED=true
      - VIKUNJA_MAILER_HOST=smtp.139.com
      - VIKUNJA_MAILER_PORT=465
      - VIKUNJA_MAILER_USERNAME=136@139.com
      - VIKUNJA_MAILER_PASSWORD=e7022000
      - VIKUNJA_MAILER_FROMEMAIL=136@139.com
      - VIKUNJA_MAILER_FORCESSL=true
      - VIKUNJA_DEFAULTSETTINGS_LANGUAGE=zh-cn
      - VIKUNJA_DEFAULTSETTINGS_TIMEZONE=Asia/Shanghai
    ports:
      - 8081:3456
    depends_on:
      - db
    volumes:
      - ./files:/app/vikunja/files
      - ./db:/db
      - /etc/localtime:/etc/localtime:ro

  db:
    image: postgres:16
   container_name: vikuja_pgsql
    environment:
      - POSTGRES_PASSWORD=98bb80b4d25957cf3d161657fff81a8c
      - POSTGRES_USER=vikunja
      - POSTGRES_DB=vikunja
    volumes:
      - ./db:/var/lib/postgresql/data
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -h localhost -U $$POSTGRES_USER"]
      interval: 30s
      timeout: 20s
      retries: 3

常用维护指令

https://vikunja.io/docs/cli#testmail

代码块
languagebash
alias vikunja-docker='docker exec vikuja /app/vikunja/vikunja'
vikunja-docker  user list
vikunja-docker  user create -u 302494 -e 302494@myj.com.cn -p password
vikunja-docker  user change-status 7 -d
vikunja-docker  testmail 3123@myj.com.cn