Skip to content

Commit

Permalink
feat: add ports to devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
brakmic committed Dec 30, 2024
1 parent 5880b32 commit 98dde6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
"source=${localWorkspaceFolder}/.devcontainer/setup-workspace.mjs,target=/workspace/.devcontainer/setup-workspace.mjs,type=bind",
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
],
"forwardPorts": [8080, 9000],
"forwardPorts": [
8080, // keycloak admin console
9000, // keycloak health reports
3000, // for testing
3001, // for testing
3002 // for testing
],
"initializeCommand": "docker network inspect devnetwork >/dev/null 2>&1 || docker network create devnetwork",
"runArgs": ["--network=devnetwork"],
"postCreateCommand": "node /workspace/.devcontainer/setup-workspace.mjs && ln -sf /workspace/dev.code-workspace /home/jsdev/.vscode-server/dev.code-workspace",
Expand Down

0 comments on commit 98dde6a

Please sign in to comment.