This repository has been archived by the owner on May 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (55 loc) · 1.54 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
version: "3.5"
x-common-variables: &common-variables
MYSQL_HOST: "db"
MYSQL_PORT: "3306"
MYSQL_USERNAME: "root"
MYSQL_ROOT_PASSWORD: "REPLACE-HERE"
services:
cobe1:
build: './'
depends_on:
- db
restart: always
read_only: true
tty: true
environment:
<<: *common-variables
MYSQL_DB: "cobe1"
BOT_TOKEN: "111111111:XXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
CREATOR_ID: "00000000"
CREATOR_NICKNAME: "XXXXXXXXX"
LEARN_ENABLED: "1"
CHAT_ALLOWLIST: "00000000000,00000000001"
TRIGGER_ENABLED: "1"
TRIGGER_WORDS: "@cobe1bot,cobe1bot,cobe1"
RANDOM_ENABLED: "1"
RANDOM_PERCENTAGE: "200"
PRIVATE_REPLY_ENABLED: "1"
BLOCKLIST_WORDS: "#hashtag"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "20m"
db:
restart: always
image: mariadb
command: --default-authentication-plugin=mysql_native_password
environment: *common-variables
volumes:
- ./db/mysql/:/var/lib/mysql
- ./db/config:/etc/mysql/conf.d
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "10m"
healthcheck:
test: "mysqladmin status -u root -p$$MYSQL_ROOT_PASSWORD || exit 1"
timeout: 10s
interval: 1m30s
retries: 2
networks:
default:
driver_opts:
com.docker.network.bridge.name: cobebot