final TESTING
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-13 14:11:42 +07:00
parent c05b1d5f5c
commit 9776e29d7d
24 changed files with 434 additions and 392 deletions

19
scripts/docker/up.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
# shellcheck source=../lib/common.sh
source "$(dirname "$0")/../lib/common.sh"
# shellcheck source=../lib/docker.sh
source "$(dirname "$0")/../lib/docker.sh"
cd "$LM_ROOT"
docker_cmd
if ! docker info >/dev/null 2>&1 && ! sudo -n docker info >/dev/null 2>&1; then
echo "Cần quyền Docker. Thử: sudo $0 hoặc usermod -aG docker \$USER"
fi
"${DOCKER[@]}" compose up --build -d
echo "Đã chạy: http://localhost:8080/"
echo -n "Giới hạn: "
print_container_limits "$LM_CONTAINER"