Auto-detect username for volume isolation in own-account mode
The previous SIGNUM variable was required (${SIGNUM:?...}), which
broke for users with their own OS accounts who shouldn't need to set
anything manually. Replace with ${SIGNUM:-${USER}} so:
- Own-account mode: leave SIGNUM unset in .env — project name and
container name default to devbox-$USER automatically. Each OS
user gets isolated volumes with zero configuration.
- Shared-account mode: set SIGNUM=<id> in .env as before.
Both container_name and the top-level name: field use the same
fallback, so volumes and container names stay consistent.
Updated .env.shared.example to document both modes with the SIGNUM
line commented out by default (own-account is the common case).
This commit is contained in:
+9
-3
@@ -1,7 +1,13 @@
|
||||
# ── Shared machine setup ─────────────────────────────────────────────
|
||||
# Your corporate signum / username (REQUIRED)
|
||||
# This isolates your container, config, and data from other users.
|
||||
SIGNUM=your-signum-here
|
||||
# SIGNUM isolates your container name and named volumes from other users.
|
||||
#
|
||||
# Own-account mode (each user has their own OS login):
|
||||
# Leave SIGNUM commented out — it defaults to your OS username ($USER).
|
||||
# SIGNUM=
|
||||
#
|
||||
# Shared-account mode (everyone logs in as the same OS user):
|
||||
# Uncomment and set to your unique identifier.
|
||||
# SIGNUM=your-signum-here
|
||||
|
||||
# ── Provider ─────────────────────────────────────────────────────────
|
||||
OPENCODE_PROVIDER=amazon-bedrock
|
||||
|
||||
Reference in New Issue
Block a user