Skip to content

Commit 3e96759

Browse files
committed
re-structure file / folders
1 parent 76c2f93 commit 3e96759

14 files changed

+64
-38
lines changed

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM wechaty/wechaty
2+
3+
WORKDIR /bot
4+
5+
COPY package.json .
6+
RUN jq 'del(.dependencies.wechaty)' package.json | sponge package.json \
7+
&& npm install \
8+
&& sudo rm -fr /tmp/* ~/.npm
9+
COPY . .
10+
11+
CMD [ "npm", "start" ]
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: '3.8'
2+
services:
3+
4+
chatie-api:
5+
image: chatie-api
6+
container_name: chatie-api
7+
network_mode: bridge
8+
expose:
9+
- 8788
10+
environment:
11+
- HTTPS_METHOD=noredirect
12+
- VIRTUAL_HOST=api.chatie.io,www.chatie.io
13+
- LETSENCRYPT_HOST=api.chatie.io,www.chatie.io

docker-compose.yml docker-compose/nginx-proxy/docker-compose.yml

-36
Original file line numberDiff line numberDiff line change
@@ -37,42 +37,6 @@ services:
3737
- certs:/etc/nginx/certs:rw
3838
- /var/run/docker.sock:/var/run/docker.sock:ro
3939

40-
watchtower:
41-
image: containrrr/watchtower
42-
container_name: watchtower
43-
network_mode: bridge
44-
expose:
45-
- 8080
46-
environment:
47-
- WATCHTOWER_CLEANUP=true
48-
- WATCHTOWER_HTTP_API_TOKEN=lizhuohuan
49-
- VIRTUAL_HOST=watchtower.chatie.io
50-
- LETSENCRYPT_HOST=watchtower.chatie.io
51-
volumes:
52-
- /var/run/docker.sock:/var/run/docker.sock
53-
command:
54-
- --debug
55-
- --http-api
56-
- friday
57-
58-
localtunnel:
59-
image: defunctzombie/localtunnel-server
60-
container_name: localtunnel
61-
network_mode: host
62-
command:
63-
- --port
64-
- '3000'
65-
- --domain
66-
- localtunnel.chatie.io
67-
68-
watchdog:
69-
image: chatie/watchdog.icu
70-
container_name: watchdog.icu
71-
network_mode: bridge
72-
environment:
73-
- VIRTUAL_HOST=watchdog.icu,www.watchdog.icu
74-
- LETSENCRYPT_HOST=watchdog.icu,www.watchdog.icu
75-
7640
volumes:
7741
conf:
7842
vhost:

nginx/conf.d/bot5.club docker-compose/reverse-web/conf.d/bot5.club.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
server {
22
listen 80;
3-
server_name bot5.ml www.bot5.ml bot5.club www.bot5.club;
3+
server_name bot5.ml www.bot5.ml;
44

55
location / {
66
proxy_pass http://wechaty.github.io;
File renamed without changes.
File renamed without changes.

nginx/nginx.conf docker-compose/reverse-web/nginx.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ http {
66

77
include ./proxy.conf;
88

9-
include conf.d/*;
9+
include conf.d/*.conf;
1010
}
File renamed without changes.
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: '3.8'
2+
services:
3+
4+
watchtower:
5+
image: containrrr/watchtower
6+
container_name: watchtower
7+
network_mode: bridge
8+
expose:
9+
- 8080
10+
environment:
11+
- WATCHTOWER_CLEANUP=true
12+
- WATCHTOWER_HTTP_API_TOKEN=lizhuohuan
13+
- VIRTUAL_HOST=watchtower.chatie.io
14+
- LETSENCRYPT_HOST=watchtower.chatie.io
15+
volumes:
16+
- /var/run/docker.sock:/var/run/docker.sock
17+
command:
18+
- --debug
19+
- --http-api
20+
- friday
21+
22+
localtunnel:
23+
image: defunctzombie/localtunnel-server
24+
container_name: localtunnel
25+
network_mode: host
26+
command:
27+
- --port
28+
- '3000'
29+
- --domain
30+
- localtunnel.chatie.io
31+
32+
watchdog:
33+
image: chatie/watchdog.icu
34+
container_name: watchdog.icu
35+
network_mode: bridge
36+
environment:
37+
- VIRTUAL_HOST=watchdog.icu,www.watchdog.icu
38+
- LETSENCRYPT_HOST=watchdog.icu,www.watchdog.icu

0 commit comments

Comments
 (0)