mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 04:30:09 +00:00
chore: improve dev container (#2648)
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
// https://aka.ms/devcontainer.json
|
// https://aka.ms/devcontainer.json
|
||||||
{
|
{
|
||||||
"name": "Existing Docker Compose (Extend)",
|
"name": "Speedtest Tracker Dev Environment",
|
||||||
"dockerComposeFile": [
|
"dockerComposeFile": [
|
||||||
"../docker-compose.yml"
|
"../compose.yaml"
|
||||||
],
|
],
|
||||||
"service": "laravel.test",
|
"service": "laravel.test",
|
||||||
"workspaceFolder": "/var/www/html",
|
"workspaceFolder": "/var/www/html",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"remoteUser": "sail",
|
"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": [],
|
// "forwardPorts": [],
|
||||||
// "runServices": [],
|
// "runServices": [],
|
||||||
// "shutdownAction": "none",
|
// "shutdownAction": "none",
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ LOG_DEPRECATIONS_CHANNEL=null
|
|||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
DB_CONNECTION=sqlite
|
DB_CONNECTION=sqlite
|
||||||
|
#DB_HOST=
|
||||||
|
#DB_PORT=
|
||||||
|
#DB_DATABASE=
|
||||||
|
#DB_USERNAME=
|
||||||
|
#DB_PASSWORD=
|
||||||
|
|
||||||
SESSION_DRIVER=cookie
|
SESSION_DRIVER=cookie
|
||||||
SESSION_LIFETIME=10080
|
SESSION_LIFETIME=10080
|
||||||
@@ -42,3 +47,7 @@ MAIL_FROM_ADDRESS="hello@example.com"
|
|||||||
MAIL_FROM_NAME="Speedtest Tracker"
|
MAIL_FROM_NAME="Speedtest Tracker"
|
||||||
|
|
||||||
VITE_APP_NAME="${APP_NAME}"
|
VITE_APP_NAME="${APP_NAME}"
|
||||||
|
|
||||||
|
# For the Dev Container
|
||||||
|
# WWWUSER=1000
|
||||||
|
# WWWGROUP=1000
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ services:
|
|||||||
- mailpit
|
- mailpit
|
||||||
- apprise
|
- apprise
|
||||||
pgsql:
|
pgsql:
|
||||||
image: 'postgres:17-alpine'
|
image: 'postgres:18-alpine'
|
||||||
ports:
|
ports:
|
||||||
- '${FORWARD_DB_PORT:-5432}:5432'
|
- '${FORWARD_DB_PORT:-5432}:5432'
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user