summaryrefslogtreecommitdiffhomepage
path: root/bin/up
diff options
context:
space:
mode:
Diffstat (limited to 'bin/up')
-rwxr-xr-xbin/up5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/up b/bin/up
index 03df1b7..2cccfa8 100755
--- a/bin/up
+++ b/bin/up
@@ -10,6 +10,11 @@ PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
# Load secrets from gopass
OPENCODE_API_KEY="$(gopass show -o projects/ai-api/opencode_go_key)"
+# Pass host user identity so the container runs as the same UID/GID
+export HOST_UID="$(id -u)"
+export HOST_GID="$(id -g)"
+export HOST_USER="$(whoami)"
+
# Start all services
OPENCODE_API_KEY="$OPENCODE_API_KEY" \
docker compose -f "$PROJECT_DIR/docker-compose.yml" up "$@"