chore: improve dev container (#2648)

This commit is contained in:
Sven van Ginkel
2026-01-12 18:33:03 +01:00
committed by GitHub
parent cc0f0d36e3
commit 7d74172de9
3 changed files with 13 additions and 4 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
// https://aka.ms/devcontainer.json
{
"name": "Existing Docker Compose (Extend)",
"name": "Speedtest Tracker Dev Environment",
"dockerComposeFile": [
"../docker-compose.yml"
"../compose.yaml"
],
"service": "laravel.test",
"workspaceFolder": "/var/www/html",
@@ -20,7 +20,7 @@
}
},
"remoteUser": "sail",
"postCreateCommand": "chown -R 1000:1000 /var/www/html 2>/dev/null || true"
"postCreateCommand": "composer install && npm install && npm run build && touch database/database.sqlite && php artisan migrate:fresh --force"
// "forwardPorts": [],
// "runServices": [],
// "shutdownAction": "none",
+9
View File
@@ -18,6 +18,11 @@ LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=sqlite
#DB_HOST=
#DB_PORT=
#DB_DATABASE=
#DB_USERNAME=
#DB_PASSWORD=
SESSION_DRIVER=cookie
SESSION_LIFETIME=10080
@@ -42,3 +47,7 @@ MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="Speedtest Tracker"
VITE_APP_NAME="${APP_NAME}"
# For the Dev Container
# WWWUSER=1000
# WWWGROUP=1000
+1 -1
View File
@@ -25,7 +25,7 @@ services:
- mailpit
- apprise
pgsql:
image: 'postgres:17-alpine'
image: 'postgres:18-alpine'
ports:
- '${FORWARD_DB_PORT:-5432}:5432'
environment: