Skip to content

Commit dc09334

Browse files
committed
configured correctly docker for the project
1 parent 88b6d22 commit dc09334

File tree

6 files changed

+74
-19
lines changed

6 files changed

+74
-19
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"laravel/breeze": "^2.2",
1919
"laravel/pail": "^1.1",
2020
"laravel/pint": "^1.13",
21-
"laravel/sail": "^1.26",
21+
"laravel/sail": "^1.41",
2222
"mockery/mockery": "^1.6",
2323
"nunomaduro/collision": "^8.1",
2424
"phpunit/phpunit": "^11.0.1"

composer.lock

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
services:
2+
laravel.test:
3+
build:
4+
context: ./vendor/laravel/sail/runtimes/8.3
5+
dockerfile: Dockerfile
6+
args:
7+
WWWGROUP: '${WWWGROUP}'
8+
image: sail-8.3/app
9+
extra_hosts:
10+
- 'host.docker.internal:host-gateway'
11+
ports:
12+
- '${APP_PORT:-80}:80'
13+
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
14+
environment:
15+
WWWUSER: '${WWWUSER}'
16+
LARAVEL_SAIL: 1
17+
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
18+
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
19+
IGNITION_LOCAL_SITES_PATH: '${PWD}'
20+
volumes:
21+
- '.:/var/www/html'
22+
networks:
23+
- sail
24+
depends_on:
25+
- mysql
26+
mysql:
27+
image: 'mysql/mysql-server:8.0'
28+
ports:
29+
- '${FORWARD_DB_PORT:-3306}:3306'
30+
environment:
31+
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
32+
MYSQL_ROOT_HOST: '%'
33+
MYSQL_DATABASE: '${DB_DATABASE}'
34+
MYSQL_USER: '${DB_USERNAME}'
35+
MYSQL_PASSWORD: '${DB_PASSWORD}'
36+
MYSQL_ALLOW_EMPTY_PASSWORD: 1
37+
volumes:
38+
- 'sail-mysql:/var/lib/mysql'
39+
- './vendor/laravel/sail/database/mysql/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh'
40+
networks:
41+
- sail
42+
healthcheck:
43+
test:
44+
- CMD
45+
- mysqladmin
46+
- ping
47+
- '-p${DB_PASSWORD}'
48+
retries: 3
49+
timeout: 5s
50+
networks:
51+
sail:
52+
driver: bridge
53+
volumes:
54+
sail-mysql:
55+
driver: local

package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"laravel-vite-plugin": "^1.0",
1616
"postcss": "^8.4.31",
1717
"tailwindcss": "^3.2.1",
18-
"vite": "^5.0",
18+
"vite": "^5.4.14",
1919
"vue": "^3.4.0"
2020
}
2121
}

resources/js/Pages/Dashboard.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ onMounted(() => {
2121

2222

2323
<div class="dashboard-container">
24-
<h1 class="">Welcome back to Neumatrans-repairs! You are logged in with the account {{ userName }}</h1>
24+
<h1 class="">Welcome back to the Neumatrans dashboard! You are logged in with the account {{ userName }}</h1>
2525
<div class="tiles-grid">
2626
<Tile
2727
title="Clients"

0 commit comments

Comments
 (0)