mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-11 01:10:11 +01:00
d094cc3c10
docs: update deployment templates to just pull the docker image and boot that instead of building
21 lines
791 B
Bash
21 lines
791 B
Bash
#!/bin/bash
|
|
# check output of userdata script with sudo tail -f /var/log/cloud-init-output.log
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y docker.io
|
|
sudo usermod -a -G docker ubuntu
|
|
|
|
sudo systemctl enable docker
|
|
sudo systemctl start docker
|
|
|
|
mkdir -p /home/anythingllm
|
|
touch /home/anythingllm/.env
|
|
|
|
sudo docker pull mintplexlabs/anythingllm:master
|
|
sudo docker run -d -p 3001:3001 -v /home/anythingllm:/app/server/storage -v /home/anythingllm/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" mintplexlabs/anythingllm:master
|
|
echo "Container ID: $(sudo docker ps --latest --quiet)"
|
|
|
|
export ONLINE=$(curl -Is http://localhost:3001/api/ping | head -n 1|cut -d$' ' -f2)
|
|
echo "Health check: $ONLINE"
|
|
echo "Setup complete! AnythingLLM instance is now online!"
|