|
1 | 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/docker-existing-dockerfile |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose |
3 | 3 | {
|
| 4 | + // Name for the dev container |
| 5 | + "name": "langchain", |
| 6 | + |
| 7 | + // Point to a Docker Compose file |
4 | 8 | "dockerComposeFile": "./docker-compose.yaml",
|
| 9 | + |
| 10 | + // Required when using Docker Compose. The name of the service to connect to once running |
5 | 11 | "service": "langchain",
|
6 |
| - "workspaceFolder": "/workspaces/langchain", |
7 |
| - "name": "langchain", |
8 |
| - "customizations": { |
9 |
| - "vscode": { |
10 |
| - "extensions": [ |
11 |
| - "ms-python.python" |
12 |
| - ], |
13 |
| - "settings": { |
14 |
| - "python.defaultInterpreterPath": "/home/vscode/langchain-py-env/bin/python3.11" |
15 |
| - } |
16 |
| - } |
17 |
| - |
18 |
| - }, |
19 |
| - |
20 |
| - // Features to add to the dev container. More info: https://containers.dev/features. |
21 |
| - "features": {}, |
| 12 | + |
| 13 | + // The optional 'workspaceFolder' property is the path VS Code should open by default when |
| 14 | + // connected. This is typically a file mount in .devcontainer/docker-compose.yml |
| 15 | + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", |
| 16 | + |
| 17 | + // Prevent the container from shutting down |
| 18 | + "overrideCommand": true |
| 19 | + |
| 20 | + // Features to add to the dev container. More info: https://containers.dev/features |
| 21 | + // "features": { |
| 22 | + // "ghcr.io/devcontainers-contrib/features/poetry:2": {} |
| 23 | + // } |
22 | 24 |
|
23 | 25 | // Use 'forwardPorts' to make a list of ports inside the container available locally.
|
24 | 26 | // "forwardPorts": [],
|
25 | 27 |
|
26 | 28 | // Uncomment the next line to run commands after the container is created.
|
27 | 29 | // "postCreateCommand": "cat /etc/os-release",
|
28 | 30 |
|
29 |
| - // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. |
30 |
| - // "remoteUser": "devcontainer" |
31 |
| - "remoteUser": "vscode", |
32 |
| - "overrideCommand": true |
| 31 | + // Configure tool-specific properties. |
| 32 | + // "customizations": {}, |
| 33 | + |
| 34 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 35 | + // "remoteUser": "root" |
33 | 36 | }
|
0 commit comments