mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
8a01760a0f
**Sync the config in `devcontainer.json` and `docker-compose.yml`** Issue: when opening the current `master` branch in a dev container in VS Code, I get the following message as VS Code cannot find the mounted source folder: ![image](https://github.com/langchain-ai/langchain/assets/1824461/41cf20c0-d1e0-4648-9578-edf80b99c2db) Opening in a GitHub Codespace works (it seems to ignore the mounts in the `docker-compose.yml`. This PR updates the mount in `docker-compose.yml` and the config in `devcontainer.json` so that the two align. I have tested these changes in GitHub Codespaces and a VS Code dev container and both loaded successfully. Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
33 lines
728 B
YAML
33 lines
728 B
YAML
version: '3'
|
|
services:
|
|
langchain:
|
|
build:
|
|
dockerfile: libs/langchain/dev.Dockerfile
|
|
context: ..
|
|
volumes:
|
|
# Update this to wherever you want VS Code to mount the folder of your project
|
|
- ..:/workspaces/langchain:cached
|
|
networks:
|
|
- langchain-network
|
|
# environment:
|
|
# MONGO_ROOT_USERNAME: root
|
|
# MONGO_ROOT_PASSWORD: example123
|
|
# depends_on:
|
|
# - mongo
|
|
# mongo:
|
|
# image: mongo
|
|
# restart: unless-stopped
|
|
# environment:
|
|
# MONGO_INITDB_ROOT_USERNAME: root
|
|
# MONGO_INITDB_ROOT_PASSWORD: example123
|
|
# ports:
|
|
# - "27017:27017"
|
|
# networks:
|
|
# - langchain-network
|
|
|
|
networks:
|
|
langchain-network:
|
|
driver: bridge
|
|
|
|
|