正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史记录

« 前一个 版本 6 当前 »

简介

轻量级的开源看板,支持多种数据库配置模式。和 wekan 相比更简单和直观

https://vikunja.io/docs/full-docker-example

vikunja.yml

mkdir $PWD/{files,db}
chown 1000 $PWD/files $PWD/db
openssl rand -hex 32
version: '3'

services:
  vikunja:
    image: vikunja/vikunja
    container_name: vikuja
    restart: unless-stopped
    environment:
      - VIKUNJA_SERVICE_JWTSECRET=6dd20e6f597767fc0b8253407fdcecdef8aa6757581fa1c78538b380505aef20
      - VIKUNJA_SERVICE_PUBLICURL=http://192.168.192.78:8081/
      - VIKUNJA_DATABASE_PATH=/db/vikunja.db
    ports:
      - 8081:3456
    volumes:
      - ./files:/app/vikunja/files
      - ./db:/db
      - /etc/localtime:/etc/localtime:ro
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

alias vikunja-docker='docker exec vikuja /app/vikunja/vikunja'
vikunja-docker  user list
vikunja-docker  testmail 3123@myj.com.cn


  • 无标签