File tree Expand file tree Collapse file tree 4 files changed +73
-9
lines changed Expand file tree Collapse file tree 4 files changed +73
-9
lines changed Original file line number Diff line number Diff line change
1
+ FROM node:lts-alpine
2
+
3
+ # Working directory
4
+ WORKDIR /app
5
+
6
+ # Install dependencies
7
+ RUN npm install -g pnpm
8
+ COPY package.json pnpm-lock.yaml ./
9
+ RUN pnpm install
10
+
11
+ # Install plugins and sdk dependency
12
+ COPY ./pnpm-workspace.yaml ./
13
+ COPY ./plugins ./plugins
14
+ RUN pnpm install
15
+
16
+ # Copy source
17
+ COPY . .
18
+ RUN pnpm install
19
+
20
+ # Build and cleanup
21
+ ENV NODE_ENV=production
22
+
23
+ # Install plugins(whitelist)
24
+ RUN cd plugins/com.msgbyte.docs && npm run build:web && cd -
25
+
26
+ # Start server
27
+ CMD ["pnpm" , "serve" ]
Original file line number Diff line number Diff line change
1
+ # ############### tailchat-docs ################
2
+
3
+ # Same with tailchat-server
4
+
5
+ NAMESPACE =
6
+ LOGGER = true
7
+ LOGLEVEL = info
8
+ SERVICEDIR = services
9
+
10
+ TRANSPORTER = redis://redis:6379
11
+
12
+ CACHER = redis://redis:6379
13
+
14
+ REDIS_URL = redis://redis:6379
15
+ MONGO_URL = mongodb://mongo/tailchat
16
+ SECRET =
17
+
18
+ # file
19
+ API_URL = https://paw-server-test.moonrailgun.com
20
+
21
+ # minio
22
+ MINIO_URL = minio:9000
23
+ MINIO_USER = tailchat
24
+ MINIO_PASS = com.msgbyte.tailchat
25
+
26
+ # SMTP
27
+ SMTP_SENDER =
28
+ SMTP_URI =
29
+
30
+ # ############### etherpad ################
31
+
1
32
REQUIRE_AUTHENTICATION = true
2
33
PAD_OPTIONS_SHOW_LINE_NUMBERS = false
3
34
DEFAULT_PAD_TEXT = " 欢迎使用 Tailchat 云文档。\n 官网: https://tailchat.msgbyte.com\n "
Original file line number Diff line number Diff line change 3
3
version : " 3.3"
4
4
5
5
services :
6
- tailchat-docs-web :
7
- image : nginx
6
+ # Tailchat 云文档
7
+ tailchat-docs :
8
+ build :
9
+ context : .
10
+ image : tailchat-docs
11
+ env_file : docker-compose.env
12
+ depends_on :
13
+ - mongo
14
+ - redis
8
15
labels :
9
16
- " traefik.enable=true"
10
17
- " traefik.http.routers.tailchat-docs-web.rule=PathPrefix(`/tc-docs-web/`)"
11
- - " traefik.http.services.tailchat-docs-web.loadbalancer.server.port=80"
12
- volumes :
13
- - ./public:/usr/share/nginx/html/tc-docs-web
18
+ - " traefik.http.services.tailchat-docs-web.loadbalancer.server.port=22010"
14
19
networks :
15
20
- tailchat
16
21
17
- tailchat-etherpad :
22
+ tailchat-docs- etherpad :
18
23
build :
19
24
context : ./etherpad-lite
20
25
env_file :
21
26
- " docker-compose.env"
22
27
- " .ep.env"
23
- image : tailchat-etherpad
28
+ image : tailchat-docs- etherpad
24
29
environment :
25
30
DB_TYPE : mongodb
26
31
DB_URL : mongodb://mongo:27017/tailchat_ep
Original file line number Diff line number Diff line change 3
3
"author" : " moonrailgun" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
- "dev" : " concurrently --handle-input npm:dev:service npm:dev:web npm:dev :web:http" ,
6
+ "dev" : " concurrently --handle-input npm:dev:service npm:dev:web npm:serve :web:http" ,
7
7
"dev:service" : " ts-node ./runner.ts" ,
8
8
"dev:web" : " cd plugins/com.msgbyte.docs && npm run build:web:watch" ,
9
- "dev:web:http" : " http-server -c-1 -p 22010 ./public" ,
9
+ "serve" : " concurrently npm:dev:service npm:serve:web:http" ,
10
+ "serve:web:http" : " http-server -c-1 -p 22010 ./public" ,
10
11
"postinstall" : " git submodule init && git submodule update"
11
12
},
12
13
"dependencies" : {
You can’t perform that action at this time.
0 commit comments