feat: æ 添加dokuwiki,ghost和radicale服务器资料

This commit is contained in:
2018-01-01 23:56:55 +08:00
parent ffe186cba3
commit d8f743a6ff
11 changed files with 139 additions and 4 deletions

13
dokuwiki/dokuwiki.yaml Normal file
View File

@@ -0,0 +1,13 @@
version: '3'
services:
wiki:
image: lacsap/dokuwiki
ports:
- "8001:80"
deploy:
placement:
constraints: [node.role == manager]
volumes:
- data:/data
volumes:
data:

12
dokuwiki/readme.md Normal file
View File

@@ -0,0 +1,12 @@
# dokuwiiki服务器
## 说明
基于lacsap/dokuwiki的docker安装
## 安装
```
$ sudo docker stack deploy -c dokuwiki.yaml dokuwiki
```
## 使用
根据部署的地址访问
```
http://xxx.xxx.xxx.xxx:8001
```

19
ghost/ghost.yaml Normal file
View File

@@ -0,0 +1,19 @@
version: '3'
services:
blog:
image: ghost
ports:
- "8002:2368"
deploy:
placement:
constraints: [node.role == manager]
volumes:
- data:/var/lib/ghost/content
environment:
mail_transport: SMTP
mail_options_service: smtp.139.com
mail_options_auth_user: shaojj
mail_options_auth_pass: imwolf
volumes:
data:

14
ghost/readme.md Normal file
View File

@@ -0,0 +1,14 @@
# ghost 博客系统
## 说明
基于node.js的轻量级博客系统速度快功能只能够个人使用可快速搭建
## 部署
```
$ sudo docker stack deploy -c ghost.yaml ghost
```
## 使用
访问
```
http://xxx.xxx.xxx:8002
```
**需要根据具体服务器部署情况进行修改**

14
radicale/radicale.yaml Normal file
View File

@@ -0,0 +1,14 @@
version: '3'
services:
radicale:
build: ./radicale
image: radicale
ports:
- 5232:5232
deploy:
placement:
constraints: [node.role == manager]
volumes:
- radicale:/home/radicale
volumes:
radicale:

View File

@@ -0,0 +1,16 @@
FROM debian:9
MAINTAINER shaojj@139.com
ENV LANG C.UTF-8
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
RUN apt-get update -q && apt-get -y upgrade
RUN apt-get install python3-pip -y
RUN pip3 install radicale
ADD radicale.conf /home/radicale/
ADD users /home/radicale/
RUN mkdir /home/radicale/data
WORKDIR /home/radicale
EXPOSE 5232
ENTRYPOINT ["radicale","--config=/home/radicale/radicale.conf"]

View File

@@ -0,0 +1,10 @@
[auth]
type = htpasswd
htpasswd_filename = /home/radicale/users
htpasswd_encryption = plain
[server]
hosts = 0.0.0.0:5232
[storage]
filesystem_folder = /home/radicale/data

View File

@@ -0,0 +1,2 @@
# radicale caledav服务器容器
## base debian:9

1
radicale/radicale/users Normal file
View File

@@ -0,0 +1 @@
shaojj:shaojunjie

15
radicale/readme.md Normal file
View File

@@ -0,0 +1,15 @@
# caldav服务器
## 项目背景
- 近段时间接待,外出和会议太多,经常会忘记时间,所以想着能在一个地方同步所有设备的日程管理
- 由于gmail被墙手机联系人和日程同步不太方便想自己搭建一个服务器能方便同步不同设备之间的联系人和日程安排
- 最好科达的所有会议通知能通过这个服务器自动推送到个人手机
## 项目思路
- 服务器端选型,经过一周选型,暂定[radicale](http://radicale.org)作为服务器
- 问题
- 1.创建的collection为本地目录且为UUID格式估计是作者怕重名而设定的机制对于动手能力弱的人比较麻烦

View File

@@ -1,6 +1,25 @@
# 说明
记录常用的一些服务的docker安装文档
# 分类说明
## gitea
轻量级git托管服务器速度极快功能还行适合个人及小规模团队使用
请进入./gitea目录阅读readme.md文件。
## 分类说明
### gitea
轻量级git托管服务器速度极快功能还行适合个人及小规模团队使用详情见[gitea官网](https://gitea.io/zh-CN/)
请进入./gitea目录阅读readme.md文件。
### dokuwiki
wiki系统选用dokuwiki的原因
- 轻量级,速度快
- 基于文件存储,可快速进行数据迁移
- 官方支持markdown格式编写符合当下开发人员书写习惯
### radicale
caldav和carddav服务器轻量级服务速度快仅包含server端功能使用方便可以自行进行扩展详情见[radicale官网](http://radicale.org/)
请进入./radicale目录阅读readme.md文件。
### ghost
ghost blog轻量级个人或小团队使用博客系统详情见[ghost官网地址](https://ghost.org/)
请进入./ghost目录阅读readme.md文件