plank 安装部署

特点

  • 创建项目、看板、列表、卡片、标签和任务
  • 添加卡片成员、跟踪时间、设置截止日期、添加附件、发表评论
  • 在卡片描述和评论区支持Markdown语言
  • 通过成员和标签进行过滤
  • 自定义项目背景
  • 实时更新
  • 用户通知
  • 本地化

 

 

部署

提示:当前(20210814)Planka还未正式发布,API和数据结构有可能发生变化。

Planka通过docker-compose方式部署:

  • 确保机器安装了Docker和Docker-compose
  • 下载文件curl -L  -o docker-compose.yml
  • 编辑示例docker-compose.yml文件(仅需要这一个文件)
  • 编辑BASE_URL匹配自己的域名或者IP地址
  • 编辑SECRECT_KEY,填入随机值,或者通过openssl rand -hex 64生成  (不建议)
  • 拉取镜像并开启服务器:docker-compose up -d
  • 默认账号demo@demo.demo ,密码demo 

 

docker-compose.yam

 1 version: '3'
 2 
 3 services:
 4 planka:
 5 image: ghcr.io/plankanban/planka:latest
 6 command: >
 7 bash -c
 8 "for i in `seq 1 30`; do
 9 ./start.sh &&
10 s=$$? && break || s=$$?;
11 echo \"Tried $$i times. Waiting 5 seconds...\";
12 sleep 5;
13 done; (exit $$s)"
14 restart: unless-stopped
15 volumes:
16 - user-avatars:/app/public/user-avatars
17 - project-background-images:/app/public/project-background-images
18 - attachments:/app/private/attachments
19 ports:
20 - 3000:1337
21 environment:
22 - BASE_URL=http://124.220.13.28:3000
23 - DATABASE_URL=postgresql://postgres@postgres/planka
24 - SECRET_KEY=notsecretkey
25 
26 # - TRUST_PROXY=0
27 # - TOKEN_EXPIRES_IN=365 # In days
28 
29 # related: https://github.com/knex/knex/issues/2354
30 # As knex does not pass query parameters from the connection string we
31 # have to use environment variables in order to pass the desired values, e.g.
32 # - PGSSLMODE=<value>
33 
34 # Configure knex to accept SSL certificates
35 # - KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false
36 
37 - DEFAULT_ADMIN_EMAIL=demo@demo.demo # Do not remove if you want to prevent this user from being edited/deleted
38 - DEFAULT_ADMIN_PASSWORD=demo
39 - DEFAULT_ADMIN_NAME=Demo Demo
40 - DEFAULT_ADMIN_USERNAME=demo
41 
42 # - OIDC_ISSUER=
43 # - OIDC_CLIENT_ID=
44 # - OIDC_CLIENT_SECRET=
45 # - OIDC_SCOPES=openid email profile
46 # - OIDC_ADMIN_ROLES=admin
47 # - OIDC_ROLES_ATTRIBUTE=groups
48 # - OIDC_IGNORE_ROLES=true
49 depends_on:
50 - postgres
51 
52 postgres:
53 image: postgres:14-alpine
54 restart: unless-stopped
55 volumes:
56 - db-data:/var/lib/postgresql/data
57 environment:
58 - POSTGRES_DB=planka
59 - POSTGRES_HOST_AUTH_METHOD=trust
60 
61 volumes:
62 user-avatars:
63 project-background-images:
64 attachments:
65 db-data:

 

posted @ 2024-01-23 18:44  不会游泳的鱼丶  阅读(334)  评论(0编辑  收藏  举报