diff --git a/backend/.env.example b/backend/.env.example
index 478972c..ce6fc2f 100644
--- a/backend/.env.example
+++ b/backend/.env.example
@@ -3,6 +3,10 @@ APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
+APP_PORT=8080
+FRONTEND_URL=http://localhost:3000
+SESSION_DOMAIN=localhost
+SANCTUM_STATEFUL_DOMAINS=localhost:300
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
diff --git a/backend/composer.json b/backend/composer.json
index 93143ce..f5c4ed3 100644
--- a/backend/composer.json
+++ b/backend/composer.json
@@ -17,7 +17,7 @@
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
- "laravel/sail": "^1.18",
+ "laravel/sail": "^1.22",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
diff --git a/backend/composer.lock b/backend/composer.lock
index 3fcf130..f6c8882 100644
--- a/backend/composer.lock
+++ b/backend/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "ee957195d42c63a6861ba52824e5af26",
+ "content-hash": "d8ee2c4b6e26af29ed2bf60c6c6856a6",
"packages": [
{
"name": "brick/math",
diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml
new file mode 100644
index 0000000..ce7a760
--- /dev/null
+++ b/backend/docker-compose.yml
@@ -0,0 +1,56 @@
+version: '3'
+services:
+ laravel.test:
+ build:
+ context: ./vendor/laravel/sail/runtimes/8.2
+ dockerfile: Dockerfile
+ args:
+ WWWGROUP: '${WWWGROUP}'
+ image: sail-8.2/app
+ extra_hosts:
+ - 'host.docker.internal:host-gateway'
+ ports:
+ - '${APP_PORT:-80}:80'
+ - '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
+ environment:
+ WWWUSER: '${WWWUSER}'
+ LARAVEL_SAIL: 1
+ XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
+ XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
+ IGNITION_LOCAL_SITES_PATH: '${PWD}'
+ volumes:
+ - '.:/var/www/html'
+ networks:
+ - sail
+ depends_on:
+ - mysql
+ mysql:
+ image: 'mysql/mysql-server:8.0'
+ ports:
+ - '${FORWARD_DB_PORT:-3306}:3306'
+ environment:
+ MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
+ MYSQL_ROOT_HOST: '%'
+ MYSQL_DATABASE: '${DB_DATABASE}'
+ MYSQL_USER: '${DB_USERNAME}'
+ MYSQL_PASSWORD: '${DB_PASSWORD}'
+ MYSQL_ALLOW_EMPTY_PASSWORD: 1
+ volumes:
+ - 'sail-mysql:/var/lib/mysql'
+ - './vendor/laravel/sail/database/mysql/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh'
+ networks:
+ - sail
+ healthcheck:
+ test:
+ - CMD
+ - mysqladmin
+ - ping
+ - '-p${DB_PASSWORD}'
+ retries: 3
+ timeout: 5s
+networks:
+ sail:
+ driver: bridge
+volumes:
+ sail-mysql:
+ driver: local
diff --git a/backend/phpunit.xml b/backend/phpunit.xml
index e9f533d..4f3d5a6 100644
--- a/backend/phpunit.xml
+++ b/backend/phpunit.xml
@@ -21,8 +21,7 @@
-
-
+
diff --git a/backend/storage/app/.gitignore b/backend/storage/app/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/storage/app/public/.gitignore b/backend/storage/app/public/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/storage/framework/.gitignore b/backend/storage/framework/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/storage/framework/cache/.gitignore b/backend/storage/framework/cache/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/storage/framework/cache/data/.gitignore b/backend/storage/framework/cache/data/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/storage/framework/sessions/.gitignore b/backend/storage/framework/sessions/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/storage/framework/testing/.gitignore b/backend/storage/framework/testing/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/storage/framework/views/.gitignore b/backend/storage/framework/views/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/storage/logs/.gitignore b/backend/storage/logs/.gitignore
old mode 100644
new mode 100755