{"id":18010899,"url":"https://github.com/yokawasa/code-server-azure-webapp","last_synced_at":"2025-10-10T18:18:05.586Z","repository":{"id":66860512,"uuid":"180991678","full_name":"yokawasa/code-server-azure-webapp","owner":"yokawasa","description":"Visual Studio Code Server on Azure Web App for Containers","archived":false,"fork":false,"pushed_at":"2019-04-12T12:42:13.000Z","size":342,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T04:47:10.124Z","etag":null,"topics":["azure","azure-webapp","code-server","containers","visualstudiocode"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/yokawasa.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}},"created_at":"2019-04-12T11:07:50.000Z","updated_at":"2025-03-14T14:15:55.000Z","dependencies_parsed_at":"2023-03-11T00:24:18.894Z","dependency_job_id":null,"html_url":"https://github.com/yokawasa/code-server-azure-webapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yokawasa/code-server-azure-webapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokawasa%2Fcode-server-azure-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokawasa%2Fcode-server-azure-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokawasa%2Fcode-server-azure-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokawasa%2Fcode-server-azure-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yokawasa","download_url":"https://codeload.github.com/yokawasa/code-server-azure-webapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokawasa%2Fcode-server-azure-webapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004914,"owners_count":26083802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["azure","azure-webapp","code-server","containers","visualstudiocode"],"created_at":"2024-10-30T02:15:45.890Z","updated_at":"2025-10-10T18:18:05.570Z","avatar_url":"https://github.com/yokawasa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visual Studio Code Server on Azure Webapp for Containers\n\nThe aim of this repository is to deploy [code-server](https://github.com/codercom/code-server), VS Code running on a remote server, to [Azure Webapp for Containers](https://azure.microsoft.com/en-us/services/app-service/containers/).\n\n\u003e [WARNING] Please note that its performance is not very good on Azure Webapp for Containers\n\n![](assets/codeserver.png)\n\n## Run in Docker\n\n```sh\ndocker run -it -p 127.0.0.1:8443:8443 -v \"${PWD}:/home/coder/project\" codercom/code-server:1.621 --allow-http --no-auth\n```\n\n## Deploy Code Server to Azure Webapp for Containers\n\nPrepare docker compose YAML file for code server webapp (`codeserver.yaml`)\n```sh\ncat \u003c\u003c EOD | tee codeserver.yaml\nversion: '3.3'\n\nservices:\n  codeserver:\n    image: 'codercom/code-server:1.621'\n    volumes:\n     - ${WEBAPP_STORAGE_HOME}/site/wwwroot:/home/coder/project\n    ports:\n      - \"80:8443\"\n    entrypoint:\n      - dumb-init\n      - code-server\n      - --allow-http\n      - --no-auth\n    restart: always\nEOD\n```\n\nOpen `deploy.sh`and add values for `RESOURCE_GROUP`, `REGION`, `APP_NAME` and `APP_PLAN_NAME`, then run the script to deploy the code server container to Azure Webapp for Containers.\n\n\u003e deploy.sh\n```bash\nRESOURCE_GROUP=\"\u003cRESOURCE GROUP\u003e\"\nREGION=\"\u003cREGION: japaneast\u003e\"\nAPP_NAME=\"\u003cAPP SERVICE NAME\u003e\"\nAPP_PLAN_NAME=\"\u003cAPP SERVICE PLAN NAME\u003e\"\nCONFIG_FILE=\"codeserver.yaml\"\n\ncwd=`dirname \"$0\"`\nexpr \"$0\" : \"/.*\" \u003e /dev/null || cwd=`(cd \"$cwd\" \u0026\u0026 pwd)`\n\necho \"Create Resource Group: $RESOURCE_GROUP\"\naz group create --name $RESOURCE_GROUP --location $REGION\n\necho \"Create App Service Plan: $APP_PLAN_NAME\"\naz appservice plan create \\\n  --name $APP_PLAN_NAME \\\n  --resource-group $RESOURCE_GROUP \\\n  --sku S1 --is-linux\n\necho \"Create Web App for Container: $APP_NAME\"\naz webapp create \\\n  --resource-group $RESOURCE_GROUP \\\n  --plan $APP_PLAN_NAME \\\n  --name $APP_NAME \\\n  --multicontainer-config-type compose \\\n  --multicontainer-config-file $cwd/$CONFIG_FILE\n\necho \"Add App Setting\"\naz webapp config appsettings set \\\n  --resource-group $RESOURCE_GROUP \\\n  --name $APP_NAME \\\n  --settings WEBSITES_ENABLE_APP_SERVICE_STORAGE=TRUE\n```\n\nAccess the code-server on Azure webapp\n```sh\nopen https://$APP_NAME.azurewebsites.net\n```\n\n## Cleanup \n\n\u003e cleanup.sh\n```\naz group delete --name $RESOURCE_GROUP\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyokawasa%2Fcode-server-azure-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyokawasa%2Fcode-server-azure-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyokawasa%2Fcode-server-azure-webapp/lists"}