1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
Élégant suivi de projets open source https://planka.app
Find a file
2022-09-15 00:20:05 +05:00
.github meta: Add sponsor button 2022-08-18 16:51:59 +05:00
.husky Fix pre-commit hook, update dependencies 2022-04-19 02:52:19 +05:00
.vscode meta: Add vscode config 2022-08-09 19:36:08 +02:00
client feat: Highlight active timer, add quick actions 2022-09-15 00:20:05 +05:00
server feat: Invalidate access token on logout 2022-09-07 18:39:33 +05:00
.dockerignore meta: Fix ignore files for logs 2022-08-23 00:51:33 +02:00
.gitattributes Fix repository language 2020-05-29 21:46:08 +05:00
.gitignore meta: Fix ignore files for logs 2022-08-23 00:51:33 +02:00
CODE_OF_CONDUCT.md Update repository paths because of transfer 2020-04-23 22:56:25 +05:00
CONTRIBUTING.md docs: Add contributing guidelines 2022-04-20 19:36:24 +05:00
demo.gif Docker, update readme, update dependencies 2019-10-01 04:18:33 +05:00
docker-compose-dev.yml Update dependencies 2020-05-06 21:21:18 +05:00
docker-compose.yml ci: GitHub actions config for docker builds (#221) 2022-04-29 17:15:59 +05:00
docker-start.sh fix: Use custom logger only for production 2022-08-23 20:45:42 +02:00
Dockerfile fix: Fix dependencies installation 2022-05-21 23:52:12 +05:00
Dockerfile.base fix: Fix dependencies installation 2022-05-21 23:52:12 +05:00
LICENSE Initial commit 2019-08-31 04:07:25 +05:00
package-lock.json chore: Update version 2022-09-07 18:43:32 +05:00
package.json chore: Update version 2022-09-07 18:43:32 +05:00
README.md meta: Fixes in readme 2022-08-23 01:14:11 +02:00
SECURITY.md docs: Add security policy 2022-08-03 16:15:40 +05:00

Planka

David (path) Docker Pulls GitHub

A Trello-like kanban board built with React and Redux.

Client demo (without server features).

Features

  • Create projects, boards, lists, cards, labels and tasks
  • Add card members, track time, set a due date, add attachments, write comments
  • Markdown support in a card description and comment
  • Filter by members and labels
  • Customize project background
  • Real-time updates
  • User notifications
  • Internationalization

Deploy

Docker Compose

  • Make sure you have Docker and Docker Compose installed and operational.
  • Create docker-compose.yml based on the example. This is the ONLY file you will need. You can create this file on your own machine by copy and pasting the content.
  • Edit BASE_URL to match your domain name or IP address.
  • Edit SECRET_KEY with random value. You can generate it by openssl rand -hex 64.

Download the docker-compose.yml:

curl -L https://raw.githubusercontent.com/plankanban/planka/master/docker-compose.yml -o docker-compose.yml

Pull images and start services:

docker-compose up -d

Demo user: demo@demo.demo demo

Logging

Planka currently allows you to expose the applciation's logfile directory to the host machine via a shared volume. This feature is not enabled by default.

To expose the logfile director to the host machine, add the item ./logs/:/app/logs/ under services.planka.volumes.

Note that the directory to the left of the semicolon is regarding the host machine while the directory to the right of the semicolon is regarding the Docker container.

For example, in the above step, ./logs/:/app/logs/ will create the folder logs in the same directory where the docker-compose.yml file lives.

Rotating Logs

Logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.

Setup logrotate for Planka logs

Create a file in /etc/logrotate.d named planka with the following contents:

/path/to/planka/logs/planka.log {
  daily
  missingok
  rotate 14
  compress
  delaycompress
  notifempty
  create 640 root adm
  sharedscripts
}

Ensure to replace logfile directory with your installations /logs/planka.log location.

Restart the logrotate service.

Fail2ban

Fail2ban is a service that uses iptables to automatically drop connections for a pre-defined amount of time from IPs that continuously failed to authenticate to the configured services.

Setup a filter and a jail for Planka

A filter defines regex rules to identify when users fail to authenticate on Planka's user interface.

Create a file in /etc/fail2ban/filter.d named planka.conf with the following contents:

[Definition]
failregex = ^(.*) Invalid (email or username:|password!) (\"(.*)\"!)? ?\(IP: <ADDR>\)$
ignoreregex =

The jail file defines how to handle the failed authentication attempts found by the Planka filter.

Create a file in /etc/fail2ban/jail.d named planka.local with the following contents:

[planka]
enabled = true
port = http,https
filter = planka
logpath = /path/to/planka/logs/planka.log
maxretry = 5
bantime = 900

Ensure to replace logpath's value with your installations /logs/planka.log location. If you are using ports other than 80 and 443 for your Web server you should replace those too. The bantime and findtime are defined in seconds.

Restart the fail2ban service. You can check the status of your Planka jail by running:

fail2ban-client status planka

Development

Clone the repository and install dependencies:

git clone https://github.com/plankanban/planka.git

cd planka
npm install

Either use a local database or start the provided development database:

docker-compose -f docker-compose-dev.yml up

Create server/.env based on server/.env.sample and edit DATABASE_URL if needed, then initialize the database:

npm run server:db:init

Start the development server:

npm start

Demo user: demo@demo.demo demo

Tech stack

  • React, Redux, Redux-Saga, Redux-ORM, Semantic UI React, react-beautiful-dnd
  • Sails.js, Knex.js
  • PostgreSQL

License

Planka is MIT licensed.