1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-10-20 20:12:39 +03:00
Files
bookstack/dev/docker/enter.sh
2025-10-06 13:06:12 +01:00

14 lines
266 B
Bash

#!/usr/bin/env bash
# Auto-detect your user ID
USER_ID=$(id -u)
GROUP_ID=$(id -g)
USERNAME=$(whoami)
# Export variables
export USER_ID
export GROUP_ID
export USERNAME
# Build & start the stack
docker-compose up -d --remove-orphans app && docker compose attach app