Skip to content

Commit 7d74172

Browse files
authored
chore: improve dev container (#2648)
1 parent cc0f0d3 commit 7d74172

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// https://aka.ms/devcontainer.json
22
{
3-
"name": "Existing Docker Compose (Extend)",
3+
"name": "Speedtest Tracker Dev Environment",
44
"dockerComposeFile": [
5-
"../docker-compose.yml"
5+
"../compose.yaml"
66
],
77
"service": "laravel.test",
88
"workspaceFolder": "/var/www/html",
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"remoteUser": "sail",
23-
"postCreateCommand": "chown -R 1000:1000 /var/www/html 2>/dev/null || true"
23+
"postCreateCommand": "composer install && npm install && npm run build && touch database/database.sqlite && php artisan migrate:fresh --force"
2424
// "forwardPorts": [],
2525
// "runServices": [],
2626
// "shutdownAction": "none",

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ LOG_DEPRECATIONS_CHANNEL=null
1818
LOG_LEVEL=debug
1919

2020
DB_CONNECTION=sqlite
21+
#DB_HOST=
22+
#DB_PORT=
23+
#DB_DATABASE=
24+
#DB_USERNAME=
25+
#DB_PASSWORD=
2126

2227
SESSION_DRIVER=cookie
2328
SESSION_LIFETIME=10080
@@ -42,3 +47,7 @@ MAIL_FROM_ADDRESS="[email protected]"
4247
MAIL_FROM_NAME="Speedtest Tracker"
4348

4449
VITE_APP_NAME="${APP_NAME}"
50+
51+
# For the Dev Container
52+
# WWWUSER=1000
53+
# WWWGROUP=1000

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
- mailpit
2626
- apprise
2727
pgsql:
28-
image: 'postgres:17-alpine'
28+
image: 'postgres:18-alpine'
2929
ports:
3030
- '${FORWARD_DB_PORT:-5432}:5432'
3131
environment:

0 commit comments

Comments
 (0)