mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
Populate .env file using variable inside userdata script (#2075)
Populate .env file using variable
This commit is contained in:
parent
1e8d752a54
commit
01e85b0ffc
1 changed files with 4 additions and 2 deletions
|
@ -9,8 +9,10 @@ sudo systemctl enable docker
|
|||
sudo systemctl start docker
|
||||
|
||||
mkdir -p /home/anythingllm
|
||||
touch /home/anythingllm/.env
|
||||
|
||||
cat <<EOF >/home/anythingllm/.env
|
||||
${env_content}
|
||||
EOF
|
||||
|
||||
sudo docker pull mintplexlabs/anythingllm
|
||||
sudo docker run -d -p 3001:3001 --cap-add SYS_ADMIN -v /home/anythingllm:/app/server/storage -v /home/anythingllm/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" mintplexlabs/anythingllm
|
||||
echo "Container ID: $(sudo docker ps --latest --quiet)"
|
||||
|
|
Loading…
Add table
Reference in a new issue