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/javascript-node-postgres
3+ {
4+ "name" : " Teaching-API" ,
5+ "dockerComposeFile" : " docker-compose.yml" ,
6+ "service" : " app" ,
7+ "workspaceFolder" : " /workspaces/${localWorkspaceFolderBasename}" ,
8+ // Features to add to the dev container. More info: https://containers.dev/features.
9+ "features" : {
10+ "ghcr.io/devcontainers/features/github-cli:1" : {},
11+ "ghcr.io/rails/devcontainer/features/postgres-client" : {
12+ "version" : " 17"
13+ },
14+ "ghcr.io/code-fabrik/features/dokku-cli:latest" : {}
15+ },
16+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
17+ // This can be used to network with other containers or with the host.
18+ "forwardPorts" : [3002 , 5432 ],
19+ // Use 'postCreateCommand' to run commands after the container is created.
20+ "postCreateCommand" : " yarn install" ,
21+ // Configure tool-specific properties.
22+ "customizations" : {
23+ "vscode" : {
24+ "extensions" : [
25+ " Prisma.prisma" ,
26+ " mhutchie.git-graph" ,
27+ " dbaeumer.vscode-eslint" ,
28+ " motivesoft.vscode-uuid-generator" ,
29+ " dbaeumer.vscode-eslint" ,
30+ " esbenp.prettier-vscode"
31+ ]
32+ }
33+ },
34+ "remoteEnv" : {
35+ "DATABASE_URL" : " postgresql://postgres:postgres@db:5432/teaching_api?schema=public"
36+ }
37+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
38+ // "remoteUser": "root"
39+ }
0 commit comments