+
+if [ "$ARCH" = 'arm64' ]; then
+ echo "$LOG_PREFIX WARN: If building from images, make sure to uncomment 'platform' in the docker-compose.yml file!"
+
+ # You need a Docker account to pull images. Otherwise, you will get an error like: "error getting credentials"
+ if [ -z "$DOCKER_USER" ]; then
+ echo "$LOG_PREFIX Logging into Docker Hub..."
+ docker login
+ else
+ echo "$LOG_PREFIX Logging into Docker Hub. Please provide your personal access token."
+ docker login --username="$DOCKER_USER"
+ fi
+
+ echo "$LOG_PREFIX Initializing images in the background. Please be patient if compiling from source..."
+ docker compose up -d --build
+else
+ sudo docker compose up -d --build
+fi
+
+echo "$LOG_PREFIX Complete! You can now access the UI at http://localhost:1236."