## code-server部署vscode云端版,实现浏览器IDE,处处编写代码
``` yml
version: "3"
services:
code-server:
image: linuxserver/code-server:latest
container_name: code-server
environment:
PUID: 1000
PGID: 1000
TZ: Asia/Shanghai
PASSWORD: password #optional
HASHED_PASSWORD: #optional
PROXY_DOMAIN: domain.com #optional
SUDO_PASSWORD: sudo_password #optional
SUDO_PASSWORD_HASH: #optional
DEFAULT_WORKSPACE: /config/workspace #optional
volumes:
- ./code:/config
ports:
- 8443:8443
restart: unless-stopped
```
docker-compose up 启动之后,浏览器输入 http://127.0.0.1:8433 输入配置的PASSWORD