Update user ID and URLs in vs-code-server config
This commit is contained in:
@@ -5,14 +5,14 @@ services:
|
|||||||
image: ghcr.io/coder/coder:latest
|
image: ghcr.io/coder/coder:latest
|
||||||
container_name: coder
|
container_name: coder
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: "1000:1000" # 非 root
|
user: "5000:5000" # 非 root
|
||||||
environment:
|
environment:
|
||||||
# === 資料庫 ===
|
# === 資料庫 ===
|
||||||
CODER_PG_CONNECTION_URL: postgresql://coder:${POSTGRES_PASSWORD}@postgres:5432/coder?sslmode=disable
|
CODER_PG_CONNECTION_URL: postgresql://coder:${POSTGRES_PASSWORD}@postgres:5432/coder?sslmode=disable
|
||||||
|
|
||||||
# === 外部 URL ===
|
# === 外部 URL ===
|
||||||
CODER_ACCESS_URL: https://coder.your-domain.com
|
CODER_ACCESS_URL: https://code.karylab.com
|
||||||
CODER_WILDCARD_ACCESS_URL: https://*.coder.your-domain.com
|
CODER_WILDCARD_ACCESS_URL: https://*.code.karylab.com
|
||||||
|
|
||||||
# === TLS 由 Nginx 處理 ===
|
# === TLS 由 Nginx 處理 ===
|
||||||
CODER_TLS_ENABLE: "false"
|
CODER_TLS_ENABLE: "false"
|
||||||
@@ -23,10 +23,15 @@ services:
|
|||||||
CODER_OIDC_CLIENT_SECRET: ${CODER_OIDC_CLIENT_SECRET}
|
CODER_OIDC_CLIENT_SECRET: ${CODER_OIDC_CLIENT_SECRET}
|
||||||
CODER_OIDC_ALLOW_SIGNUPS: "true"
|
CODER_OIDC_ALLOW_SIGNUPS: "true"
|
||||||
|
|
||||||
|
CODER_HOME: /config/coder
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# 每個使用者獨立資料夾
|
# 使用者 config(.config, .cache, extensions)→ volume
|
||||||
- user_data:/home
|
- user_config:/config/users
|
||||||
- coder_config:/home/coder/.config
|
# 使用者程式碼 → 宿主實體目錄(bind mount)
|
||||||
|
- /path/to/host/projects:/projects
|
||||||
|
# Coder 系統設定 → volume
|
||||||
|
- coder_system:/config/coder
|
||||||
networks:
|
networks:
|
||||||
- coder-net
|
- coder-net
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -46,16 +51,9 @@ services:
|
|||||||
- coder-net
|
- coder-net
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
user_data:
|
user_config: # 所有使用者 .config, .cache
|
||||||
driver: local
|
coder_system: # Coder 系統設定
|
||||||
driver_opts:
|
postgres_data: # 資料庫
|
||||||
type: none
|
|
||||||
device: /path/to/host/user_data # 宿主機目錄
|
|
||||||
o: bind
|
|
||||||
coder_config:
|
|
||||||
driver: local
|
|
||||||
postgres_data:
|
|
||||||
driver: local
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
coder-net:
|
coder-net:
|
||||||
|
|||||||
Reference in New Issue
Block a user