-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.31 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
version: '3.7'
services:
mc-redis:
image: redis:latest
restart: always
container_name: mc-redis
expose:
- 6379
environment:
TZ: Asia/Shanghai
volumes:
- ./configs/redis.conf:/etc/redis/redis.conf
- ./data/redis-data:/data
command: redis-server /etc/redis/redis.conf
mc-gocq:
image: silicer/go-cqhttp
restart: always
container_name: mc-gocq
expose:
- 9091
depends_on:
- mc-nonebot
volumes:
- ./configs/filter.json:/data/filter.json
- ./configs/go-cqhttp.yml:/data/config.yml
- ./data/go-cqhttp/session.token:/data/session.token
- ./data/go-cqhttp/logs:/data/logs
- ./data/go-cqhttp/data:/data/data
mc-nonebot:
build: ./nonebot
restart: always
container_name: mc-nonebot
expose:
- 9092
environment:
- TZ=Asia/Shanghai
volumes:
- ./configs:/var/lib/message-channel
- ./nonebot:/root/nonebot/
command: python3 /root/nonebot/bot.py
mc-core:
build: ./channel
restart: always
container_name: mc-core
ports:
- 9090:8000
expose:
- 8000
depends_on:
- mc-redis
- mc-gocq
volumes:
- ./configs:/var/lib/message-channel
- ./channel:/root/channel
command: python3 root/channel/server.py