Skip to content

Commit da262d0

Browse files
authored
Change DB_HOST to use host.docker.internal
1 parent dc4f123 commit da262d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ function RunBot(): void {
884884
$BOT_TOKEN = $env['BOT_TOKEN'];
885885
$DB_FLAG = $env['DB_FLAG'] ?? 'no';
886886
$BOT_NAME = $env['BOT_NAME'] ?? 'GetAnyMessage';
887-
$dbHost = $env['DB_HOST'] ?? 'localhost';
887+
$dbHost = $env['DB_HOST'] ?? 'host.docker.internal';
888888
$dbPort = $env['DB_PORT'] ?? 3306;
889889
$dbUser = $env['DB_USER'] ?? 'mpuser';
890890
$dbPass = $env['DB_PASS'] ?? 'mp_pass';

0 commit comments

Comments
 (0)