Skip to content

Commit

Permalink
adding env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie ⚡ committed Sep 5, 2022
1 parent 473e31b commit 5e32cdd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// This can be used to network with other containers or with the host.
"forwardPorts": [3000, 5432],
"forwardPorts": [5432],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install"
"postCreateCommand": "npm install",
"containerEnv": {
"DATABASE_URL": "postgresql:https://postgres:[email protected]:5432/reubin"
}

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "node"
Expand Down

0 comments on commit 5e32cdd

Please sign in to comment.