forked from SilveryStar/Adachi-BOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (62 loc) · 1.62 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3.7"
services:
redis:
image: redis:6
container_name: adachi-redis
environment:
- TZ=Asia/Shanghai
restart: always
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./database:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf
bot:
build:
context: .
image: adachi-bot:latest
ports:
- "80:80"
container_name: adachi-bot
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
docker: "yes"
depends_on:
- redis
# - gocq
volumes:
- ./:/bot
- /bot/node_modules/
- /bot/.pnpm-store/
- /bot/go-cqhttp/
- /bot/src/web-console/frontend/
# gocq:
# # 用dev分支处理qsign等功能
# image: ghcr.io/mrs4s/go-cqhttp:dev
# container_name: adachi-go-cqhttp
# # 如果需要把这个服务让其他 BOT 调用可以把端口映射到宿主机
# # ports:
# # - "8081:80"
# volumes:
# # 把gocq的配置、设备文件挂载出来
# - ./go-cqhttp:/data
# depends_on:
# - qsign
# restart: always
# qsign:
# image: bennettwu/qsign-server:1.1.9
# container_name: adachi-qsign
# # 如果需要把这个服务让其他 BOT 调用可以把端口映射到宿主机
# # ports:
# # - "8080:80"
# deploy:
# resources:
# limits:
# memory: 300M
# cpus: '0.7'
# # 不挂载资源默认用8.9.63,key是114514,最终地址为http://adachi-qsign/sign?key=114514
# # 如果要修改则需要挂载资源
## volumes:
# # 可以放txlib目录中的.so文件
## - ./txlib:/app/txlib
# restart: always