Skip to content

Commit 9d360a9

Browse files
authored
Updated codespace configuration.
1 parent 833b4bb commit 9d360a9

File tree

2 files changed

+141
-0
lines changed

2 files changed

+141
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
// https://aka.ms/devcontainer.json
2+
{
3+
"name": "Existing Docker Compose (Extend)",
4+
"dockerComposeFile": [
5+
"../docker-compose.yml"
6+
],
7+
"features": {
8+
"ghcr.io/devcontainers/features/sshd:1": {
9+
"version": "latest"
10+
}
11+
},
12+
"service": "laravel.test",
13+
"workspaceFolder": "/var/www/html",
14+
"customizations": {
15+
"vscode": {
16+
"settings": {},
17+
"extensions": [
18+
"aaron-bond.better-comments",
19+
"adrianwilczynski.alpine-js-intellisense",
20+
"AlexArthurs.todo-pusher",
21+
"amiralizadeh9480.laravel-extra-intellisense",
22+
"austenc.laravel-blade-spacer",
23+
"beyondcode.tinkerwell",
24+
"bmewburn.vscode-intelephense-client",
25+
"bradlc.vscode-tailwindcss",
26+
"christian-kohler.npm-intellisense",
27+
"christian-kohler.path-intellisense",
28+
"cierra.livewire-vscode",
29+
"codecov.codecov",
30+
"codingyu.laravel-goto-view",
31+
"davidanson.vscode-markdownlint",
32+
"davidbwaters.macos-modern-theme",
33+
"eamodio.gitlens",
34+
"editorconfig.editorconfig",
35+
"ericcheng.codesongclear",
36+
"faelv.composer-companion",
37+
"file-icons.file-icons",
38+
"foxundermoon.shell-format",
39+
"georgykurian.laravel-ide-helper",
40+
"github.codespaces",
41+
"GitHub.copilot-chat",
42+
"GitHub.copilot-nightly",
43+
"GitHub.copilot",
44+
"github.vscode-github-actions",
45+
"github.vscode-pull-request-github",
46+
"Gruntfuggly.todo-tree",
47+
"heissenbergerlab.php-array-from-json",
48+
"heybourn.headwind",
49+
"huibizhang.codesnap-plus",
50+
"irongeek.vscode-env",
51+
"kencocaceo.customvscodeuicss",
52+
"m4ns0ur.base64",
53+
"maciejdems.add-to-gitignore",
54+
"mahmoudshahin.laravel-routes",
55+
"markis.code-coverage",
56+
"martybegood.single-editor-tabs",
57+
"mechatroner.rainbow-csv",
58+
"mehedidracula.php-namespace-resolver",
59+
"mhutchie.git-graph",
60+
"mikestead.dotenv",
61+
"mohamedbenhida.laravel-intellisense",
62+
"mrmlnc.vscode-duplicate",
63+
"naoray.laravel-goto-components",
64+
"oderwat.indent-rainbow",
65+
"pcbowers.alpine-intellisense",
66+
"recca0120.vscode-phpunit",
67+
"redhat.vscode-yaml",
68+
"rifi2k.format-html-in-php",
69+
"shevaua.phpcs",
70+
"shufo.vscode-blade-formatter",
71+
"sperovita.alpinejs-syntax-highlight",
72+
"streetsidesoftware.code-spell-checker",
73+
"syler.ignore",
74+
"teabyii.ayu",
75+
"usernamehw.errorlens",
76+
"vincaslt.highlight-matching-tag",
77+
"WakaTime.vscode-wakatime",
78+
"withfig.fig",
79+
"xdebug.php-debug"
80+
]
81+
}
82+
},
83+
"remoteUser": "sail",
84+
"postCreateCommand": "sudo chown -R 1000:1000 /var/www/html",
85+
"forwardPorts": [
86+
80,
87+
5432,
88+
6001,
89+
8025,
90+
8900,
91+
9000
92+
],
93+
"portsAttributes": {
94+
"80": {
95+
"label": "HTTP"
96+
},
97+
"5432": {
98+
"label": "Postgres"
99+
},
100+
"6001": {
101+
"label": "Web Sockets"
102+
},
103+
"8025": {
104+
"label": "MailHog"
105+
},
106+
"8900": {
107+
"label": "Minio Console"
108+
},
109+
"9000": {
110+
"label": "Minio Host"
111+
}
112+
},
113+
"mounts": [
114+
"source=${localEnv:HOME}/.wakatime.cfg,target=/home/sail/.wakatime.cfg,type=bind,consistency=delegated"
115+
]
116+
// "runServices": [],
117+
// "shutdownAction": "none",
118+
}

docker-compose.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# For more information: https://laravel.com/docs/sail
2+
version: '3'
3+
services:
4+
laravel.test:
5+
image: ghcr.io/mikebronner/sail/php-8.2:latest
6+
extra_hosts:
7+
- 'host.docker.internal:host-gateway'
8+
ports:
9+
- '${APP_PORT:-80}:80'
10+
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
11+
environment:
12+
WWWUSER: '${WWWUSER:-1000}'
13+
LARAVEL_SAIL: 1
14+
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
15+
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
16+
volumes:
17+
- '.:/var/www/html'
18+
networks:
19+
- sail
20+
21+
networks:
22+
sail:
23+
driver: bridge

0 commit comments

Comments
 (0)