Spaces:
Running
Running
AILIXIR Bot commited on
Commit ·
f0dbfed
1
Parent(s): d6de28d
Auto-sync: 0c952e9897d525adff35a008b74c3f3810676402
Browse files- Dockerfile +2 -2
- config/sanctum.php +1 -1
- docker-compose.yml +1 -1
- tests/Feature/MdSimulationE2ETest.php +1 -1
Dockerfile
CHANGED
|
@@ -109,7 +109,7 @@ USER www-data
|
|
| 109 |
EXPOSE 8000 7860
|
| 110 |
|
| 111 |
HEALTHCHECK --interval=15s --timeout=5s --start-period=40s --retries=5 \
|
| 112 |
-
CMD php -r "exit((int)(@file_get_contents('http://127.0.0.1:
|
| 113 |
|
| 114 |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
| 115 |
-
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=
|
|
|
|
| 109 |
EXPOSE 8000 7860
|
| 110 |
|
| 111 |
HEALTHCHECK --interval=15s --timeout=5s --start-period=40s --retries=5 \
|
| 112 |
+
CMD php -r "exit((int)(@file_get_contents('http://127.0.0.1:7860') === false));"
|
| 113 |
|
| 114 |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
| 115 |
+
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=7860"]
|
config/sanctum.php
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
|
| 18 |
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
|
| 19 |
'%s%s',
|
| 20 |
-
'localhost,localhost:3000,127.0.0.1,127.0.0.1:
|
| 21 |
Sanctum::currentApplicationUrlWithPort(),
|
| 22 |
// Sanctum::currentRequestHost(),
|
| 23 |
))),
|
|
|
|
| 17 |
|
| 18 |
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
|
| 19 |
'%s%s',
|
| 20 |
+
'localhost,localhost:3000,127.0.0.1,127.0.0.1:7860,::1',
|
| 21 |
Sanctum::currentApplicationUrlWithPort(),
|
| 22 |
// Sanctum::currentRequestHost(),
|
| 23 |
))),
|
docker-compose.yml
CHANGED
|
@@ -9,7 +9,7 @@ services:
|
|
| 9 |
container_name: ailixir-laravel
|
| 10 |
restart: unless-stopped
|
| 11 |
ports:
|
| 12 |
-
- "${LARAVEL_HTTP_PORT:-8080}:
|
| 13 |
env_file:
|
| 14 |
- docker/laravel.env
|
| 15 |
environment:
|
|
|
|
| 9 |
container_name: ailixir-laravel
|
| 10 |
restart: unless-stopped
|
| 11 |
ports:
|
| 12 |
+
- "${LARAVEL_HTTP_PORT:-8080}:7860"
|
| 13 |
env_file:
|
| 14 |
- docker/laravel.env
|
| 15 |
environment:
|
tests/Feature/MdSimulationE2ETest.php
CHANGED
|
@@ -17,7 +17,7 @@ protected function setUp(): void
|
|
| 17 |
parent::setUp();
|
| 18 |
|
| 19 |
$this->baseUrl = rtrim(
|
| 20 |
-
(string) getenv('MD_E2E_BASE_URL') ?: 'http://localhost:
|
| 21 |
'/'
|
| 22 |
);
|
| 23 |
$this->email = (string) getenv('MD_E2E_EMAIL') ?: 'test@example.com';
|
|
|
|
| 17 |
parent::setUp();
|
| 18 |
|
| 19 |
$this->baseUrl = rtrim(
|
| 20 |
+
(string) getenv('MD_E2E_BASE_URL') ?: 'http://localhost:7860/api',
|
| 21 |
'/'
|
| 22 |
);
|
| 23 |
$this->email = (string) getenv('MD_E2E_EMAIL') ?: 'test@example.com';
|