1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
planka/README.md

160 lines
4.9 KiB
Markdown
Raw Normal View History

2019-08-31 04:07:25 +05:00
# Planka
2022-04-19 20:36:10 +05:00
![David (path)](https://img.shields.io/github/package-json/v/plankanban/planka) ![Docker Pulls](https://img.shields.io/docker/pulls/meltyshev/planka) ![GitHub](https://img.shields.io/github/license/plankanban/planka)
2019-10-11 16:28:23 +05:00
A Trello-like kanban board built with React and Redux.
2019-08-31 04:07:25 +05:00
![](https://raw.githubusercontent.com/plankanban/planka/master/demo.gif)
2019-08-31 04:07:25 +05:00
2020-10-06 21:07:14 +05:00
[**Client demo**](https://plankanban.github.io/planka) (without server features).
2020-10-06 21:04:43 +05:00
## Features
2019-08-31 04:07:25 +05:00
- Create projects, boards, lists, cards, labels and tasks
2020-05-27 15:20:00 +05:00
- Add card members, track time, set a due date, add attachments, write comments
2019-10-03 17:51:11 +05:00
- Markdown support in a card description and comment
2019-08-31 04:07:25 +05:00
- Filter by members and labels
2020-05-27 15:20:00 +05:00
- Customize project background
2019-09-04 22:25:24 +05:00
- Real-time updates
2019-08-31 04:07:25 +05:00
- User notifications
- Internationalization
## Deploy
2019-08-31 04:07:25 +05:00
### Docker Compose
2019-08-31 04:07:25 +05:00
2020-10-06 21:07:14 +05:00
[![](https://d207aa93qlcgug.cloudfront.net/1.95.5.qa/img/nav/docker-logo-loggedout.png)](https://hub.docker.com/r/meltyshev/planka)
2019-08-31 04:07:25 +05:00
2020-10-06 21:07:14 +05:00
- Make sure you have [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/) installed and operational.
- Create `docker-compose.yml` based on [the example](https://raw.githubusercontent.com/plankanban/planka/master/docker-compose.yml). This is the ONLY file you will need. You can create this file on your own machine by copy and pasting the content.
2019-10-01 04:58:20 +05:00
- 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`.
2019-10-01 04:58:20 +05:00
Download the docker-compose.yml:
```
curl -L https://raw.githubusercontent.com/plankanban/planka/master/docker-compose.yml -o docker-compose.yml
2019-08-31 04:07:25 +05:00
```
Pull images and start services:
2019-08-31 04:07:25 +05:00
```
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`.
2022-08-23 01:14:11 +02:00
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
2022-08-23 01:14:11 +02:00
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:
```conf
[Definition]
2022-08-23 01:14:11 +02:00
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:
```conf
[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:
```bash
fail2ban-client status planka
```
## Development
2019-08-31 04:07:25 +05:00
Clone the repository and install dependencies:
2019-08-31 04:07:25 +05:00
```
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
2019-08-31 04:07:25 +05:00
```
Start the development server:
2019-08-31 04:07:25 +05:00
```
2019-08-31 04:07:25 +05:00
npm start
```
Demo user: demo@demo.demo demo
## Tech stack
2019-08-31 04:07:25 +05:00
- React, Redux, Redux-Saga, Redux-ORM, Semantic UI React, react-beautiful-dnd
- Sails.js, Knex.js
- PostgreSQL
2019-08-31 04:07:25 +05:00
## License
2020-10-06 21:07:14 +05:00
Planka is [MIT licensed](https://github.com/plankanban/planka/blob/master/LICENSE).