{"id":15141796,"url":"https://github.com/mohamedelashri/vscode-server-docker","last_synced_at":"2026-03-08T02:08:54.202Z","repository":{"id":250209963,"uuid":"833793838","full_name":"MohamedElashri/vscode-server-docker","owner":"MohamedElashri","description":"Microsoft Visual Studio Code inside a container","archived":false,"fork":false,"pushed_at":"2026-01-21T00:10:55.000Z","size":25,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T10:53:03.948Z","etag":null,"topics":["developer-tools","development-environment","docker-image","visual-studio-code","vscode"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MohamedElashri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-25T19:01:22.000Z","updated_at":"2025-06-21T16:53:33.000Z","dependencies_parsed_at":"2024-09-12T00:37:05.791Z","dependency_job_id":"7054c497-e913-4e42-8367-d92ee797be92","html_url":"https://github.com/MohamedElashri/vscode-server-docker","commit_stats":null,"previous_names":["mohamedelashri/vscode-server-docker"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/MohamedElashri/vscode-server-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fvscode-server-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fvscode-server-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fvscode-server-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fvscode-server-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohamedElashri","download_url":"https://codeload.github.com/MohamedElashri/vscode-server-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fvscode-server-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29671513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"online","status_checked_at":"2026-02-21T02:00:07.432Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","development-environment","docker-image","visual-studio-code","vscode"],"created_at":"2024-09-26T09:02:05.817Z","updated_at":"2026-02-21T02:02:21.752Z","avatar_url":"https://github.com/MohamedElashri.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VSCode Server in Docker Container\n\nThis project provides a containerized VSCode server environment, allowing you to run VSCode in a web browser. It's designed to be secure, customizable, and easy to set up.\n\n## Features\n\n- VSCode server running in a Docker container\n- Secure access with password protection and connection token\n- Customizable user, workspace, and environment settings\n- Persistent storage for VSCode settings and workspace data\n- Easy deployment with Docker Compose\n- Support for local and remote serve modes\n- Support for Github Copilot and Microsoft extensions (i.e remote development)\n\n## Prerequisites\n\n- Docker\n- Docker Compose\n\n## Quick Start\n\n1. Clone this repository:\n   ```\n   git clone https://github.com/MohamedElashri/vscode-server-docker.git\n   cd vscode-server-docker\n   ```\n\n2. Copy the example `sample.env` file and modify it as needed:\n   ```\n   cp sample.env .env\n   ```\n\n3. Edit the `.env` file and set the following required variables:\n   ```\n   VSCODE_KEYRING_PASS=your_secure_password\n   CONNECTION_TOKEN=your_connection_token\n   ```\n   Replace `your_secure_password` and `your_connection_token` with strong, unique values.\n\n4. Build and start the container:\n   ```\n   docker-compose up -d\n   ```\n\n## Accessing the Server\n\nAccess VSCode in your web browser at `http://localhost:8000/?tkn=YOUR_CONNECTION_TOKEN` (replace `YOUR_CONNECTION_TOKEN` with the value you set in the `.env` file).\n\nNOTE: This will not work if you are not using `localhost` or `127.0.0.1`. According to this [issue](https://github.com/microsoft/vscode/issues/191276), The CLI does not support running serve-web with a TLS certificate, requiring an additional proxy layer like nginx. This is a limitation of browsers.\n\n## Configuration\n\n### Environment Variables\n\nYou can customize the setup by modifying the following variables in the `.env` file:\n\n- `USER`: The username for the VSCode user (default: vscode)\n- `USER_ID`: The user ID for the VSCode user (default: 1000)\n- `GROUP_ID`: The group ID for the VSCode user (default: 1000)\n- `WORKDIR`: The name of the workspace directory (default: workspace)\n- `VSCODE_SERVE_MODE`: The serve mode for VSCode (default: local)\n- `VSCODE_KEYRING_PASS`: The password for the VSCode keyring (required, no default)\n- `VSCODE_SERVER_PORT`: The port to access VSCode (default: 8000)\n- `CONNECTION_TOKEN`: A secure token for authenticating access to the VSCode server (required, no default)\n- `TAG`: The tag for the Docker image (default: latest)\n\n### Persistent Storage\n\nThe Docker Compose configuration uses named volumes to persist data:\n\n- `vscode_data`: Stores VSCode settings\n- `vscode_server_data`: Stores VSCode server-specific data\n- `workdir_data`: Stores your workspace files\n\n## Usage\n\n### Starting the Server\n\n```\ndocker-compose up -d\n```\n\n### Stopping the Server\n\n```\ndocker-compose down\n```\n\n### Updating the Server\n\n1. Pull the latest changes from the repository:\n   ```\n   git pull origin main\n   ```\n\n2. Rebuild and restart the container:\n   ```\n   docker-compose up -d --build\n   ```\n\n### Accessing Logs\n\n```\ndocker-compose logs\n```\n\n## Security Considerations\n\n- Always use strong, unique values for `VSCODE_KEYRING_PASS` and `CONNECTION_TOKEN` in the `.env` file.\n- Never share or expose your `.env` file. Add it to your `.gitignore` to prevent accidental commits.\n- Consider using HTTPS for production deployments.\n- Regularly update the Docker image and dependencies.\n- The container will fail to start if `VSCODE_KEYRING_PASS` or `CONNECTION_TOKEN` are not set, ensuring these critical security measures are in place.\n\n## Troubleshooting\n\n- If the container fails to start, check that you've set both `VSCODE_KEYRING_PASS` and `CONNECTION_TOKEN` in your `.env` file.\n- Ensure your `.env` file is in the same directory as your `docker-compose.yml` file.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedelashri%2Fvscode-server-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedelashri%2Fvscode-server-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedelashri%2Fvscode-server-docker/lists"}