- Add Docker Compose configuration for Maven + Java 21 development container - Include SSH server support for remote development (Zed editor compatible) - Install Bun package manager and opencode-ai for enhanced development workflow - Provide Makefile with commands for build, up, down, restart, logs, shell, ssh, and clean - Add .env.example template for configurable ports and paths - Include .gitignore for Java/Maven artifacts and IDE files - Configure USTC mirrors for faster package installation - Support persistent volume mounting for root user configuration (.ssh, .m2 cache)
21 lines
533 B
Plaintext
21 lines
533 B
Plaintext
# ==============================================
|
|
# Maven + Java + Bun 开发容器配置模板
|
|
# 使用方法: 复制此文件为 .env 并修改具体值
|
|
# cp .env.example .env
|
|
# ==============================================
|
|
|
|
# === 端口配置 ===
|
|
# SSH 连接端口 (宿主机)
|
|
SSH_PORT=2222
|
|
# Web 应用端口 (宿主机)
|
|
APP_PORT=9090
|
|
|
|
# === 路径配置 ===
|
|
# 项目源码挂载路径 (本地路径)
|
|
PROJECT_DIR=/workspace
|
|
|
|
# === 镜像信息 ===
|
|
IMAGE_NAME=maven-java21-bun-dev
|
|
IMAGE_TAG=1.0
|
|
CONTAINER_NAME=maven-devcontainer
|