Skip to content

Commit 6ad9f67

Browse files
authored
Feature/update docker config (#444)
1 parent 25c839b commit 6ad9f67

File tree

277 files changed

+8097
-6999
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+8097
-6999
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2+
"enableAllProjectMcpServers": true,
23
"enabledMcpjsonServers": [
34
"laravel-boost"
4-
],
5-
"enableAllProjectMcpServers": true
6-
}
5+
]
6+
}

โ€Ž.docker/traefik/config.ymlโ€Ž

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
http:
2+
middlewares:
3+
vite-cors:
4+
headers:
5+
accessControlAllowOriginList:
6+
- "*"
7+
accessControlAllowMethods:
8+
- "GET"
9+
- "POST"
10+
- "OPTIONS"
11+
accessControlAllowHeaders:
12+
- "*"
13+
accessControlAllowCredentials: true
14+
accessControlMaxAge: 100
15+
addVaryHeader: true

โ€Ž.dockerignoreโ€Ž

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules
33

44
# Laravel
55
.mcp.json
6+
boost.json
67
.env.example
78
.env.testing
89
phpstan.neon
@@ -13,13 +14,12 @@ tests
1314
stubs
1415
app-modules/**/tests
1516
.phpunit.cache
16-
.ai
1717

1818
# Ide
1919
.editorconfig
2020
.prettierignore
2121
.prettierrc
22-
*.md
22+
*/**/.md
2323
.idea
2424
.vscode
2525
.junie
@@ -34,3 +34,6 @@ app-modules/**/tests
3434

3535
# Others
3636
art
37+
.ai
38+
.docker
39+
auth.json

โ€Ž.editorconfigโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trim_trailing_whitespace = true
1111
[*.md]
1212
trim_trailing_whitespace = false
1313

14-
[*{.yml,.scss,.js,.json,.css}]
14+
[*{.yml,.yaml,.css,.js,.json}]
1515
indent_size = 2
1616

1717
[docker-compose*.yml]

โ€Ž.env.exampleโ€Ž

Lines changed: 41 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,59 +5,61 @@ APP_DEBUG=true
55
APP_DOMAIN=laravelcm.local
66
APP_URL=http://laravelcm.local
77
ASSET_URL=https://laravelcm.local
8-
APP_LOCALE=fr
9-
APP_FALLBACK_LOCALE=fr
8+
109
APP_PORT=8080
1110
APP_SERVICE=laravelcm
1211

12+
APP_LOCALE=fr
13+
APP_FALLBACK_LOCALE=fr
14+
APP_FAKER_LOCALE=fr_FR
15+
16+
APP_MAINTENANCE_DRIVER=file
17+
# APP_MAINTENANCE_STORE=database
18+
19+
PHP_CLI_SERVER_WORKERS=4
20+
1321
BCRYPT_ROUNDS=12
1422

1523
LOG_CHANNEL=stack
16-
LOG_STACK=single,nightwatch
24+
LOG_STACK=single,stderr
25+
LOG_DEPRECATIONS_CHANNEL=null
1726
LOG_LEVEL=debug
1827
LOG_SOCKET_URL=buggregator:9913
1928

20-
# Ray Configuration
21-
RAY_HOST=ray@buggregator
22-
RAY_PORT=8000
23-
# Sentry
24-
SENTRY_LARAVEL_DSN=http://sentry@buggregator:8000/1
25-
SENTRY_TRACES_SAMPLE_RATE=1.0
26-
#Var Dumper
27-
VAR_DUMPER_FORMAT=server
28-
VAR_DUMPER_SERVER=tcp://buggregator:9912
29-
# Inspector
30-
INSPECTOR_URL=http://inspector@buggregator:8000
31-
INSPECTOR_API_KEY=test
32-
INSPECTOR_INGESTION_KEY=1test
33-
INSPECTOR_ENABLE=true
34-
3529
DB_CONNECTION=pgsql
3630
DB_HOST=pgsql
3731
DB_PORT=5432
3832
DB_DATABASE=laravelcm
3933
DB_USERNAME=sail
4034
DB_PASSWORD=password
4135

36+
SESSION_DRIVER=database
37+
SESSION_LIFETIME=120
38+
SESSION_ENCRYPT=false
39+
SESSION_PATH=/
40+
SESSION_DOMAIN=null
41+
4242
BROADCAST_DRIVER=log
43+
BROADCAST_CONNECTION=log
44+
4345
MEDIA_DISK=media
4446
FILESYSTEM_DISK="${MEDIA_DISK}"
45-
FILAMENT_PATH=cpanel
4647

4748
QUEUE_CONNECTION=database
48-
BROADCAST_CONNECTION=log
49-
CACHE_DRIVER=file
50-
SESSION_DRIVER=database
51-
SESSION_LIFETIME=1400
5249

53-
MEMCACHED_HOST=127.0.0.1
50+
CACHE_DRIVER=database
51+
# CACHE_PREFIX=
52+
53+
MEMCACHED_HOST=memcached
5454

55-
REDIS_HOST=127.0.0.1
55+
REDIS_CLIENT=phpredis
56+
REDIS_HOST=redis
5657
REDIS_PASSWORD=null
5758
REDIS_PORT=6379
5859

59-
MAIL_MAILER=smtp
60-
MAIL_HOST=mailhog
60+
MAIL_MAILER=log
61+
MAIL_SCHEME=null
62+
MAIL_HOST=buggregator
6163
MAIL_PORT=1025
6264
MAIL_USERNAME=null
6365
MAIL_PASSWORD=null
@@ -70,17 +72,19 @@ AWS_ACCESS_KEY_ID=sail
7072
AWS_SECRET_ACCESS_KEY=password
7173
AWS_DEFAULT_REGION=us-east-1
7274
AWS_BUCKET=laravelcm
73-
AWS_ENDPOINT="http://minio:9000"
74-
AWS_URL="http://localhost:9000/laravelcm"
75+
AWS_ENDPOINT=https://minio:9000
76+
AWS_URL=https://${APP_DOMAIN}:${FORWARD_MINIO_PORT:-9000}/${AWS_BUCKET}
7577
AWS_USE_PATH_STYLE_ENDPOINT=true
78+
AWS_ROOT_DIRECTORY=public
7679

7780
PUSHER_APP_ID=
7881
PUSHER_APP_KEY=
7982
PUSHER_APP_SECRET=
8083
PUSHER_APP_CLUSTER=mt1
8184

82-
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
83-
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
85+
VITE_APP_NAME="${APP_NAME}"
86+
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
87+
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
8488

8589
GITHUB_CLIENT_ID=
8690
GITHUB_CLIENT_SECRET=
@@ -116,3 +120,9 @@ SSH_TUNNEL_PRIVATE_KEY="-----BEGIN OPENSSH PRIVATE KEY-----
116120
oi!jkdiososbXCbnNzaC1rZXktdjEABG5vbmUAAAAEbm9uZQAAAAAAAAFwAAAAdzc2gtcn
117121
... (votre clรฉ SSH privรฉe complรจte ici) ...
118122
-----END OPENSSH PRIVATE KEY-----"
123+
124+
# Laravel Octane configuration
125+
OCTANE_SERVER=off
126+
127+
WWWUSER=1000
128+
WWWGROUP=1000

โ€Ž.gemini/settings.jsonโ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"mcpServers": {
3+
"laravel-boost": {
4+
"command": "vendor/bin/sail",
5+
"args": [
6+
"artisan",
7+
"boost:mcp"
8+
]
9+
}
10+
}
11+
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Get Help
4-
url: https://laravel.cm/forum/new-thread
5-
about: If you need help with your project create a topic on our forum.
6-
- name: Bug Report
7-
url: https://github.com/laravelcm/issues
8-
about: 'For projects issues, suggest changes on our issues repository.'
9-
- name: Feature Request
10-
url: https://github.com/laravelcm/laravel.cm/discussions/new?category=ideas
11-
about: Share ideas for new features
3+
- name: Get Help
4+
url: https://laravel.cm/forum/new-thread
5+
about: If you need help with your project create a topic on our forum.
6+
- name: Bug Report
7+
url: https://github.com/laravelcm/issues
8+
about: "For projects issues, suggest changes on our issues repository."
9+
- name: Feature Request
10+
url: https://github.com/laravelcm/laravel.cm/discussions/new?category=ideas
11+
about: Share ideas for new features

โ€Ž.github/actions/setup/action.ymlโ€Ž

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
11
name: CI Setup
22
description: "Sets up the environment for jobs during CI workflow"
33

4+
inputs:
5+
flux-username:
6+
description: "Flux UI Pro username"
7+
required: true
8+
flux-license-key:
9+
description: "Flux UI Pro license key"
10+
required: true
11+
412
runs:
513
using: composite
614
steps:
715
- name: ๐Ÿ˜ Setup PHP
816
uses: shivammathur/setup-php@v2
917
with:
10-
php-version: "8.4"
18+
php-version: 8.4
1119
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, bcmath, soap, intl, gd, exif, iconv, imagick
1220
tools: composer:v2
13-
coverage: none
21+
coverage: xdebug
1422
- name: โ„น Setup Problem Matches
1523
shell: sh
1624
run: |
1725
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
1826
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
27+
- name: Add Flux Credentials Loaded From ENV
28+
shell: sh
29+
run: composer config http-basic.composer.fluxui.dev "${{ inputs.flux-username }}" "${{ inputs.flux-license-key }}"
1930
- name: ๐Ÿ—‚ Get composer cache directory
2031
id: composer-cache
2132
shell: sh
22-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
33+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
2334
- name: Cache dependencies
2435
uses: actions/cache@v4
2536
with:

โ€Ž.github/workflows/dependabot-auto-merge.ymlโ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: ${{ github.actor == 'dependabot[bot]' }}
1212
steps:
13-
1413
- name: Dependabot metadata
1514
id: metadata
1615
uses: dependabot/fetch-metadata@v2.3.0

โ€Ž.github/workflows/quality.ymlโ€Ž

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- develop
87
pull_request:
98

109
concurrency:
@@ -13,48 +12,62 @@ concurrency:
1312

1413
jobs:
1514
pint:
16-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-latest
1716
steps:
1817
- name: ๐Ÿ‘€ Checkout
1918
uses: actions/checkout@v6
20-
- name: ๐Ÿช„ Setup
19+
- name: ๐Ÿช„ Setup PHP
2120
uses: ./.github/actions/setup
21+
with:
22+
flux-username: ${{ secrets.FLUX_USERNAME }}
23+
flux-license-key: ${{ secrets.FLUX_LICENSE_KEY }}
2224
- name: ๐Ÿ”ฎ Install Composer Dependencies
2325
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
26+
- name: Install Node Dependencies & Build Assets
27+
run: npm install && npm run build
2428
- name: ๐Ÿ•ต๏ธโ€โ™‚๏ธ Run Laravel Pint
25-
run: ./vendor/bin/pint
29+
run: composer test:lint
2630

2731
phpstan:
28-
runs-on: ubuntu-22.04
32+
runs-on: ubuntu-latest
2933
steps:
3034
- name: ๐Ÿ‘€ Checkout
3135
uses: actions/checkout@v6
3236
- name: ๐Ÿช„ Setup
3337
uses: ./.github/actions/setup
38+
with:
39+
flux-username: ${{ secrets.FLUX_USERNAME }}
40+
flux-license-key: ${{ secrets.FLUX_LICENSE_KEY }}
3441
- name: ๐Ÿ”ฎ Install Composer Dependencies
3542
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
3643
- name: ๐Ÿ•ต๏ธโ€โ™‚๏ธ Run PHPStan
37-
run: composer types -- --ansi --no-interaction --no-progress --error-format=github
44+
run: composer test:types
3845

39-
rector:
40-
runs-on: ubuntu-22.04
46+
type-coverage:
47+
runs-on: ubuntu-latest
4148
steps:
4249
- name: ๐Ÿ‘€ Checkout
4350
uses: actions/checkout@v6
44-
- name: ๐Ÿช„ Setup
51+
- name: ๐Ÿช„ Setup PHP
4552
uses: ./.github/actions/setup
53+
with:
54+
flux-username: ${{ secrets.FLUX_USERNAME }}
55+
flux-license-key: ${{ secrets.FLUX_LICENSE_KEY }}
4656
- name: ๐Ÿ”ฎ Install Composer Dependencies
4757
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
48-
- name: ๐Ÿ•ต๏ธโ€โ™‚๏ธ Run Rector
49-
run: composer rector:preview
58+
- name: ๐Ÿ•ต๏ธโ€โ™‚๏ธ Run PHPStan
59+
run: composer test:type-coverage
5060

5161
composer:
52-
runs-on: ubuntu-22.04
62+
runs-on: ubuntu-latest
5363
steps:
5464
- name: ๐Ÿ‘€ Checkout
5565
uses: actions/checkout@v6
5666
- name: ๐Ÿช„ Setup
5767
uses: ./.github/actions/setup
68+
with:
69+
flux-username: ${{ secrets.FLUX_USERNAME }}
70+
flux-license-key: ${{ secrets.FLUX_LICENSE_KEY }}
5871
- name: ๐Ÿ•ต๏ธโ€โ™‚๏ธ Run Composer Validate
5972
run: composer validate
6073
- name: ๐Ÿ•ต๏ธโ€โ™‚๏ธ Run Composer Audit

0 commit comments

Comments
ย (0)