From e6ba392b1184cbfbc65eac90db27f9b1f4811fda Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 19 May 2017 13:29:40 +0800 Subject: [PATCH] add wekan --- README.md | 1 + wekan/README.md | 55 ++++++++++++++++++++++++++++++++++++++++ wekan/docker-compose.yml | 18 +++++++++++++ wekan/nginx.conf | 24 ++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 wekan/README.md create mode 100644 wekan/docker-compose.yml create mode 100644 wekan/nginx.conf diff --git a/README.md b/README.md index a3dbdd7..0b97896 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,7 @@ A collection of delicious docker recipes. - [ ] node-firefox - [x] standalone-firefox - [x] tutum/builder +- [x] wekanteam/wekan ## auto-completion diff --git a/wekan/README.md b/wekan/README.md new file mode 100644 index 0000000..41b1051 --- /dev/null +++ b/wekan/README.md @@ -0,0 +1,55 @@ +wekan +===== + +![](https://wekan.github.io/wekan-logo.png) + +[Wekan][1] is an open-source kanban board which allows a card-based task and +to-do management, similar to tools like WorkFlowy or Trello. + +## docker-compose.yml + +```yaml +wekan: + image: wekanteam/wekan + ports: + - "8081:80" + links: + - mongo + environment: + - MONGO_URL=mongodb://mongo/wekan + - ROOT_URL=https://todo.easypi.pro + restart: always + +mongo: + image: mongo + ports: + - "27017:27017" + volumes: + - ./data:/data/db + restart: always +``` + +## Up and Running + +```bash +$ docker-compose up -d +$ curl http://localhost:8081 +``` + +## Admin Panel ยป Settings + +```yaml +Registration: + Disable Self-Registration: yes + Invite People: [] + +Email: + SMTP Host: smtp.gmail.com + SMTP Port: 465 + Username: username + Password: ******** + TLS support: yes + From: username@gmail.com +``` + +[1]: https://wekan.github.io/ diff --git a/wekan/docker-compose.yml b/wekan/docker-compose.yml new file mode 100644 index 0000000..6d895f2 --- /dev/null +++ b/wekan/docker-compose.yml @@ -0,0 +1,18 @@ +wekan: + image: wekanteam/wekan + ports: + - "8081:80" + links: + - mongo + environment: + - MONGO_URL=mongodb://mongo/wekan + - ROOT_URL=https://todo.easypi.pro + restart: always + +mongo: + image: mongo + ports: + - "27017:27017" + volumes: + - ./data:/data/db + restart: always diff --git a/wekan/nginx.conf b/wekan/nginx.conf new file mode 100644 index 0000000..994959a --- /dev/null +++ b/wekan/nginx.conf @@ -0,0 +1,24 @@ +server { + listen 80 default_server; + server_name _; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + server_name todo.easypi.pro; + ssl_certificate ssl/easypi.pro/fullchain.pem; + ssl_certificate_key ssl/easypi.pro/privkey.pem; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers HIGH:!aNULL:!MD5; + location / { + proxy_pass http://127.0.0.1:8081; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } +}