Copy stacks from entrance server

This commit is contained in:
ChenKaiLiuG
2025-12-04 10:53:28 +08:00
parent 21da4e0d0d
commit 0101e553a9
7 changed files with 135 additions and 30 deletions

View File

@@ -7,36 +7,23 @@ services:
restart: unless-stopped
environment:
# GitHub OAuth 認證
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
OAUTH_CLIENT_SECRET: ${OAUTH_CLIENT_SECRET}
OAUTH_AUTHORIZE_URL: https://github.com/login/oauth/authorize
OAUTH_TOKEN_URL: https://github.com/login/oauth/access_token
OAUTH_USER_ID_TOKEN_CLAIM: login
# npm 層做基本認證code-server 再做一層密碼
PASSWORD: codeserver123
volumes:
# 程式碼目錄
- /mnt/data/External/code:/home/coder/project
# VSCode 設定
- code-server-config:/home/coder/.config
# 快取
- code-server-cache:/home/coder/.cache
# 全部在 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:
- "6800:8443"
- "127.0.0.1:8443:8443"
networks:
- webproxy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8443"]
interval: 30s
timeout: 10s
retries: 3
volumes:
code-server-config:
code-server-cache:
disable: true
networks:
webproxy: