forked from sh-edraft.de/sh_discord_bot
Improved settings #45
This commit is contained in:
parent
d5a1c15db3
commit
54db704044
@ -1,16 +1,28 @@
|
|||||||
version: "3.9"
|
version: "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
kdb_1:
|
kdb_prod_1:
|
||||||
image: kdb
|
image: kdb
|
||||||
container_name: kdb_1
|
container_name: kdb_1
|
||||||
depends_on:
|
depends_on:
|
||||||
- kdb_db_1
|
- kdb_db_1
|
||||||
environment:
|
environment:
|
||||||
|
KDB_ENVIRONMENT: "production"
|
||||||
KDB_TOKEN: ""
|
KDB_TOKEN: ""
|
||||||
KDB_PREFIX: "!k "
|
KDB_PREFIX: "!k "
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
kdb_staging_1:
|
||||||
|
image: kdb
|
||||||
|
container_name: kdb_1
|
||||||
|
depends_on:
|
||||||
|
- kdb_db_1
|
||||||
|
environment:
|
||||||
|
KDB_ENVIRONMENT: "staging"
|
||||||
|
KDB_TOKEN: ""
|
||||||
|
KDB_PREFIX: "!kt "
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
kdb_db_1:
|
kdb_db_1:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
container_name: kdb_db_1
|
container_name: kdb_db_1
|
||||||
@ -22,4 +34,17 @@ services:
|
|||||||
MYSQL_PASSWORD: "kd_kdb"
|
MYSQL_PASSWORD: "kd_kdb"
|
||||||
MYSQL_DATABASE: "kd_kdb"
|
MYSQL_DATABASE: "kd_kdb"
|
||||||
ports:
|
ports:
|
||||||
- "3307:3306"
|
- "3307:3306"
|
||||||
|
|
||||||
|
kdb_db_2:
|
||||||
|
image: mysql:latest
|
||||||
|
container_name: kdb_db_2
|
||||||
|
command: mysqld --default-authentication-plugin=mysql_native_password
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: "kd_kdb"
|
||||||
|
MYSQL_USER: "kd_kdb"
|
||||||
|
MYSQL_PASSWORD: "kd_kdb"
|
||||||
|
MYSQL_DATABASE: "kd_kdb"
|
||||||
|
ports:
|
||||||
|
- "3308:3306"
|
@ -7,10 +7,30 @@
|
|||||||
},
|
},
|
||||||
"LoggingSettings": {
|
"LoggingSettings": {
|
||||||
"Path": "logs/",
|
"Path": "logs/",
|
||||||
"Filename": "log_dev.log",
|
"Filename": "bot.log",
|
||||||
"ConsoleLogLevel": "DEBUG",
|
"ConsoleLogLevel": "DEBUG",
|
||||||
"FileLogLevel": "DEBUG"
|
"FileLogLevel": "DEBUG"
|
||||||
},
|
},
|
||||||
|
"BotLoggingSettings": {
|
||||||
|
"Command": {
|
||||||
|
"Path": "logs/",
|
||||||
|
"Filename": "commands.log",
|
||||||
|
"ConsoleLogLevel": "DEBUG",
|
||||||
|
"FileLogLevel": "DEBUG"
|
||||||
|
},
|
||||||
|
"Database": {
|
||||||
|
"Path": "logs/",
|
||||||
|
"Filename": "database.log",
|
||||||
|
"ConsoleLogLevel": "DEBUG",
|
||||||
|
"FileLogLevel": "DEBUG"
|
||||||
|
},
|
||||||
|
"Message": {
|
||||||
|
"Path": "logs/",
|
||||||
|
"Filename": "message.log",
|
||||||
|
"ConsoleLogLevel": "DEBUG",
|
||||||
|
"FileLogLevel": "DEBUG"
|
||||||
|
}
|
||||||
|
},
|
||||||
"Translation": {
|
"Translation": {
|
||||||
"DefaultLanguage": "de",
|
"DefaultLanguage": "de",
|
||||||
"Languages": [
|
"Languages": [
|
||||||
|
@ -6,9 +6,29 @@
|
|||||||
"DateTimeLogFormat": "%Y-%m-%d_%H-%M-%S"
|
"DateTimeLogFormat": "%Y-%m-%d_%H-%M-%S"
|
||||||
},
|
},
|
||||||
"LoggingSettings": {
|
"LoggingSettings": {
|
||||||
"Path": "logs/",
|
"Path": "logs/$date_now/",
|
||||||
"Filename": "log_$start_time.log",
|
"Filename": "bot.log",
|
||||||
"ConsoleLogLevel": "ERROR",
|
"ConsoleLogLevel": "ERROR",
|
||||||
"FileLogLevel": "WARN"
|
"FileLogLevel": "WARN"
|
||||||
|
},
|
||||||
|
"BotLoggingSettings": {
|
||||||
|
"Command": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "commands.log",
|
||||||
|
"ConsoleLogLevel": "ERROR",
|
||||||
|
"FileLogLevel": "WARN"
|
||||||
|
},
|
||||||
|
"Database": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "database.log",
|
||||||
|
"ConsoleLogLevel": "ERROR",
|
||||||
|
"FileLogLevel": "WARN"
|
||||||
|
},
|
||||||
|
"Message": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "message.log",
|
||||||
|
"ConsoleLogLevel": "ERROR",
|
||||||
|
"FileLogLevel": "WARN"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -6,11 +6,31 @@
|
|||||||
"DateTimeLogFormat": "%Y-%m-%d_%H-%M-%S"
|
"DateTimeLogFormat": "%Y-%m-%d_%H-%M-%S"
|
||||||
},
|
},
|
||||||
"LoggingSettings": {
|
"LoggingSettings": {
|
||||||
"Path": "logs/",
|
"Path": "logs/$date_now/",
|
||||||
"Filename": "log_$start_time.log",
|
"Filename": "bot.log",
|
||||||
"ConsoleLogLevel": "ERROR",
|
"ConsoleLogLevel": "ERROR",
|
||||||
"FileLogLevel": "INFO"
|
"FileLogLevel": "INFO"
|
||||||
},
|
},
|
||||||
|
"BotLoggingSettings": {
|
||||||
|
"Command": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "commands.log",
|
||||||
|
"ConsoleLogLevel": "ERROR",
|
||||||
|
"FileLogLevel": "INFO"
|
||||||
|
},
|
||||||
|
"Database": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "database.log",
|
||||||
|
"ConsoleLogLevel": "ERROR",
|
||||||
|
"FileLogLevel": "INFO"
|
||||||
|
},
|
||||||
|
"Message": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "message.log",
|
||||||
|
"ConsoleLogLevel": "ERROR",
|
||||||
|
"FileLogLevel": "INFO"
|
||||||
|
}
|
||||||
|
},
|
||||||
"Translation": {
|
"Translation": {
|
||||||
"DefaultLanguage": "de",
|
"DefaultLanguage": "de",
|
||||||
"Languages": [
|
"Languages": [
|
||||||
@ -18,7 +38,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"DatabaseSettings": {
|
"DatabaseSettings": {
|
||||||
"Host": "192.168.0.40",
|
"Host": "localhost",
|
||||||
"User": "kd_kdb",
|
"User": "kd_kdb",
|
||||||
"Password": "a2Rfa2Ri",
|
"Password": "a2Rfa2Ri",
|
||||||
"Database": "kd_kdb",
|
"Database": "kd_kdb",
|
||||||
|
@ -6,17 +6,48 @@
|
|||||||
"DateTimeLogFormat": "%Y-%m-%d_%H-%M-%S"
|
"DateTimeLogFormat": "%Y-%m-%d_%H-%M-%S"
|
||||||
},
|
},
|
||||||
"LoggingSettings": {
|
"LoggingSettings": {
|
||||||
"Path": "logs/",
|
"Path": "logs/$date_now/",
|
||||||
"Filename": "log_staging_$start_time.log",
|
"Filename": "bot.log",
|
||||||
"ConsoleLogLevel": "INFO",
|
"ConsoleLogLevel": "INFO",
|
||||||
"FileLogLevel": "DEBUG"
|
"FileLogLevel": "DEBUG"
|
||||||
},
|
},
|
||||||
|
"BotLoggingSettings": {
|
||||||
|
"Command": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "commands.log",
|
||||||
|
"ConsoleLogLevel": "INFO",
|
||||||
|
"FileLogLevel": "DEBUG"
|
||||||
|
},
|
||||||
|
"Database": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "database.log",
|
||||||
|
"ConsoleLogLevel": "INFO",
|
||||||
|
"FileLogLevel": "DEBUG"
|
||||||
|
},
|
||||||
|
"Message": {
|
||||||
|
"Path": "logs/$date_now/",
|
||||||
|
"Filename": "message.log",
|
||||||
|
"ConsoleLogLevel": "INFO",
|
||||||
|
"FileLogLevel": "DEBUG"
|
||||||
|
}
|
||||||
|
},
|
||||||
"Translation": {
|
"Translation": {
|
||||||
"DefaultLanguage": "de",
|
"DefaultLanguage": "de",
|
||||||
"Languages": [
|
"Languages": [
|
||||||
"de"
|
"de"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"DatabaseSettings": {
|
||||||
|
"Host": "localhost",
|
||||||
|
"User": "kd_kdb",
|
||||||
|
"Password": "a2Rfa2Ri",
|
||||||
|
"Database": "kd_kdb",
|
||||||
|
"Port": "3308",
|
||||||
|
"Charset": "utf8mb4",
|
||||||
|
"UseUnicode": "true",
|
||||||
|
"Buffered": "true",
|
||||||
|
"AuthPlugin": "mysql_native_password"
|
||||||
|
},
|
||||||
"FeatureFlags": {
|
"FeatureFlags": {
|
||||||
"AdminModule": true,
|
"AdminModule": true,
|
||||||
"BaseModule": true,
|
"BaseModule": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user