Files
docker_stack/vs-code-server/vs-code-server.yml
2025-12-04 10:53:28 +08:00

30 lines
650 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '3.8'
services:
code-server:
image: codercom/code-server:latest
container_name: code-server
restart: unless-stopped
environment:
# npm 層做基本認證code-server 再做一層密碼
PASSWORD: codeserver123
volumes:
# 全部在 code 目錄下
- /mnt/data/External/code/workspace:/home/coder/project
- /mnt/data/External/code/config:/home/coder/.config
- /mnt/data/External/code/cache:/home/coder/.cache
ports:
- "127.0.0.1:8443:8443"
networks:
- webproxy
healthcheck:
disable: true
networks:
webproxy:
external: true