From a8f42be666f8b05bc799e3ffb75994d498fe567e Mon Sep 17 00:00:00 2001 From: 8ga Date: Wed, 4 Mar 2026 14:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E9=83=A8=E7=BD=B2CodeServ?= =?UTF-8?q?er.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 部署CodeServer.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 部署CodeServer.md diff --git a/部署CodeServer.md b/部署CodeServer.md new file mode 100644 index 0000000..63247db --- /dev/null +++ b/部署CodeServer.md @@ -0,0 +1,22 @@ +## docker-compose.yaml + +```yaml +version: '3.8' + +services: + code-server: + image: linuxserver/code-server:latest + container_name: code-server + environment: + - PUID=1000 + - PGID=1001 + - TZ=Asia/Shanghai + - PASSWORD=Abc.123 + - SUDO_PASSWORD=Abc.123 + volumes: + - ./conf:/config + - ./workspace:/projects + ports: + - "48331:8443" + restart: on-failure:5 +``` \ No newline at end of file