mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(script): update install.sh
This commit is contained in:
@@ -149,6 +149,8 @@ VOLUME ["/var/lib/containerd", "/opt/memoh/data"]
|
|||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
|
||||||
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:8080/health || exit 1
|
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:8080/health \
|
||||||
|
|| wget --no-verbose --tries=1 --spider http://server:8080/health \
|
||||||
|
|| exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
+3
-3
@@ -106,7 +106,7 @@ if [ "$SILENT" = false ]; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf " Data directory (bind mount for containerd/memoh data) [%s]: " "$WORKSPACE/data" > /dev/tty
|
printf " Data directory (bind mount for server container data) [%s]: " "$WORKSPACE/data" > /dev/tty
|
||||||
read -r input < /dev/tty || true
|
read -r input < /dev/tty || true
|
||||||
if [ -n "$input" ]; then
|
if [ -n "$input" ]; then
|
||||||
case "$input" in
|
case "$input" in
|
||||||
@@ -169,8 +169,8 @@ export MEMOH_DATA_DIR
|
|||||||
mkdir -p "$MEMOH_DATA_DIR"
|
mkdir -p "$MEMOH_DATA_DIR"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "${GREEN}Starting services (first build may take a few minutes)...${NC}"
|
echo "${GREEN}Starting services (first startup may take a few minutes)...${NC}"
|
||||||
$DOCKER compose up -d --build
|
$DOCKER compose up -d
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "${GREEN}========================================${NC}"
|
echo "${GREEN}========================================${NC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user