Files
devcontainers/vibe-dev/compose.yml
enoch 8b5f440e53 Add mise language manager to dev images
- Install mise and activate it in root's zshrc in Fedora and Ubuntu
- Add mise-data volume and mount at /root/.local/share/mise
- Add mise --version check to the Makefile self-check target
- Document mise-data volume in README
- Add DB packages: postgresql/redis/mariadb to Fedora and
  postgresql-client/redis-tools/default-mysql-client to Ubuntu
2026-06-23 00:29:20 +08:00

51 lines
1.5 KiB
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.
services:
vibe-dev:
build:
context: .
# 根据需要切换 Dockerfile.fedora 或 Dockerfile.ubuntu
dockerfile: Dockerfile.fedora
args:
# 将路径传递给 Dockerfile 阶段
CONTAINER_WORKSPACE: ${CONTAINER_WORKSPACE_PATH:-/workspace}
container_name: vibe-coding-env
hostname: vibe-coding
env_file: .env
environment:
# 让容器内部程序也能感知工作目录
- WORKSPACE=${CONTAINER_WORKSPACE_PATH:-/workspace}
- SHELL=/bin/zsh
- TERM=xterm-256color
ports:
- "${SSH_PORT:-2222}:22"
- "${PORT_WEB:-6300}:3000"
- "6173-6179:5173-5179"
volumes:
- ${HOST_PROJECT_PATH:-.}:${CONTAINER_WORKSPACE_PATH:-/workspace}:cached
# 1. 使用命名卷持久化整个 .ssh 目录
- ssh-data:/root/.ssh
- ${SSH_PUB_KEY_PATH:-~/.ssh/id_ed25519.pub}:/tmp/host_id_ed25519.pub:ro
- cargo-cache:/usr/local/cargo/registry
- bun-cache:/root/.bun/install/cache
- go-cache:/root/go
# --- 新增Zed 远程开发缓存 ---
- zed-server:/root/.zed_server
- zed-share:/root/.local/share/zed
# --- 新增Oh My Pi 配置/记忆/OAuth 登录态持久化 ---
- omp-data:/root/.omp
# --- 新增mise 多语言版本管理器数据持久化 ---
- mise-data:/root/.local/share/mise
stdin_open: true
tty: true
restart: always
volumes:
ssh-data:
cargo-cache:
bun-cache:
go-cache:
zed-server:
zed-share:
omp-data:
mise-data: