reduced dev container overhead by accessing the db via dod instead of did

This commit is contained in:
Jean Jacques Avril 2025-01-01 14:24:07 +00:00
parent ceab3db8b4
commit 97fe0e69d0
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -22,10 +22,10 @@
], ],
"features": { "features": {
//"docker-in-docker": "latest", //"docker-in-docker": "latest",
//"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
"ghcr.io/devcontainers/features/docker-in-docker:2": {} //"ghcr.io/devcontainers/features/docker-in-docker:2": {}
}, },
//"runArgs": ["--add-host=host.docker.internal:host-gateway"], "runArgs": ["--add-host=host.docker.internal:host-gateway"],
"postCreateCommand": "./.devcontainer/setup.sh", "postCreateCommand": "./.devcontainer/setup.sh",
"remoteUser": "vscode", "remoteUser": "vscode",
"updateRemoteUserUID": true, "updateRemoteUserUID": true,

View File

@ -4,4 +4,4 @@
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. # Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings # See the documentation for all the connection string options: https://pris.ly/d/connection-strings
DATABASE_URL="postgresql://user:secret@localhost:5432/time_tracking_db?schema=public" DATABASE_URL="postgresql://user:secret@host.docker.internal:5432/time_tracking_db?schema=public"