1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+ // README at: https://github.com/devcontainers/templates/tree/main/src/postgres
3+ {
4+ "name" : " iris-web" ,
5+ "dockerComposeFile" : " docker-compose.yml" ,
6+ "service" : " devcontainer" ,
7+ "workspaceFolder" : " /workspaces/iris-web" ,
8+ // Features to add to the dev container. More info: https://containers.dev/features.
9+ // "features": {},
10+ // forward web app & postgres to host
11+ "forwardPorts" : [
12+ 8000 ,
13+ 5432
14+ ],
15+ // Configure tool-specific properties.
16+ // "customizations": {},
17+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
18+ // "remoteUser": "root"
19+ // https://containers.dev/implementors/json_reference/#lifecycle-scripts
20+ // prep our environment before creating & starting container
21+ "initializeCommand" : " sh '${localWorkspaceFolder}/.devcontainer/pre-create.sh'" ,
22+ // setup the dev env after the container was setup
23+ "postCreateCommand" : " sh /workspaces/iris-web/.devcontainer/post-create.sh" ,
24+ "customizations" : {
25+ "vscode" : {
26+ "extensions" : [
27+ // python-related
28+ " ms-python.python" ,
29+ " ms-python.vscode-pylance" ,
30+ " KevinRose.vsc-python-indent" ,
31+ " njpwerner.autodocstring" ,
32+
33+ // github
34+ " github.vscode-github-actions" ,
35+ " GitHub.vscode-pull-request-github" ,
36+
37+ // yaml-related
38+ " redhat.vscode-yaml" ,
39+
40+ // docker-related
41+ " ms-azuretools.vscode-docker" ,
42+
43+ // utils
44+ " mtxr.sqltools"
45+ ]
46+ }
47+ }
48+ }
0 commit comments