Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
executable file
·53 lines (44 loc) · 2.43 KB
/
Copy path.env.example
File metadata and controls
executable file
·53 lines (44 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Container Configuration
# Owner name for unique image and container naming (prevents conflicts between multiple users)
OWNER_NAME=your-name
# Volume Mount Configuration
# IMPORTANT: Set this to your actual work directory, NOT the parent of this template
# Examples:
# HOST_WORK_DIR=/Users/yourusername/projects # Absolute path to your projects
# HOST_WORK_DIR=~/work # Your work directory
# HOST_WORK_DIR=. # Current directory (only if this template is IN your project)
HOST_WORK_DIR=~/work
# SSH Configuration
# Port to expose SSH service on the host machine.
# 注意:docker-compose.yml 已將此 port 綁定在 127.0.0.1(僅本機可連)。
SSH_PORT=2222
# SSH user credentials for container access.
# 提醒:預設 sshd 只允許「金鑰登入」(PasswordAuthentication no)。
# - 登入必須靠掛載的公鑰 ~/.ssh/id_ed25519.pub(見 docker-compose.yml volumes)。
# - 下方密碼僅供容器內設定使用,SSH 登入不會用到;請改成你自己的值、勿沿用預設。
SSH_USER=developer
SSH_PASSWORD=change-me
# Optional SSH Key Mounting (uncomment and add to docker-compose.yml volumes if needed):
# Add this line to volumes section: - ~/.ssh:/root/.ssh:ro
# ---------------------------------------------------------------------------
# Persistent home data (REQUIRED — 對應 docker-compose.yml 的 /persistent 掛載)
# 家目錄持久資料(例如 SSH 私鑰)放在這個主機目錄,容器每次啟動會自動還原。
# 沒設定的話 docker compose up 會因為找不到 bind 來源而失敗。
# 範例:
# PERSIST_HOME_DIR=~/.devcontainer-home
PERSIST_HOME_DIR=~/.devcontainer-home
# Timezone(optional,預設 Asia/Taipei)— 影響 shell 與 p10k 時間顯示。
TZ=Asia/Taipei
# Python Environment Variables
# Note: PYTHONPATH is intentionally NOT set to avoid conflicts with virtual environments
# This allows each project to manage its own Python environment independently
PYTHONDONTWRITEBYTECODE=1 # Prevents Python from writing .pyc files
PYTHONUNBUFFERED=1 # Ensures Python output is not buffered
# Virtual Environment Best Practices:
# - Use "python -m venv .venv" or "uv venv" in your project directory
# - Activate with "source .venv/bin/activate"
# - Each project maintains its own isolated Python environment
# Optional: Advanced environment variables (usually not needed)
# LANG=C.UTF-8
# LC_ALL=C.UTF-8
# TERM=xterm-256color