docker-compose

This commit is contained in:
armiejean 2025-05-07 12:23:53 +08:00
parent 8bcecdc10b
commit 49d61794c6
3 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ class AuthController extends Controller
public function login(Request $request)
{
$apiUrl = env('BACKEND_API_URL', 'http://localhost:8080');
$apiUrl = env('BACKEND_API_URL', 'http://192.168.100.28:8080');
$loginEndpoint = '/api/cms/login_password';
Log::info('API URL being used: ' . $apiUrl . $loginEndpoint);
@ -57,7 +57,7 @@ class AuthController extends Controller
public function changePassword(Request $request)
{
$apiUrl = env('BACKEND_API_URL', 'http://localhost:8080');
$apiUrl = env('BACKEND_API_URL', 'http://192.168.100.28:8080');
$changePasswordEndpoint = '/api/cms/login_changePassword';
Log::info('API URL being used: ' . $apiUrl . $changePasswordEndpoint);

View File

@ -47,7 +47,7 @@ return [
'url' => env('DB_URL'),
'host' => env('DB_HOST', 'db_mysql'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'unioil-app'),
'database' => env('DB_DATABASE', 'unioil-database'),
'username' => env('DB_USERNAME', 'rootuser'),
'password' => env('DB_PASSWORD', 'password'),
'unix_socket' => env('DB_SOCKET', ''),

View File

@ -30,7 +30,7 @@ services:
environment:
- DB_HOST=db_mysql
- DB_PORT=3306
- DB_DATABASE=unioil-app
- DB_DATABASE=unioil-database
- DB_USERNAME=rootuser
- DB_PASSWORD=password
- CACHE_DRIVER=file