[Docker] Windows Docker command in Powershell (#480)

* wip

* side by side test

* patch syntax highlighting

* remove spacing formatting

* swap powershell command
This commit is contained in:
Timothy Carambat 2023-12-20 11:33:00 -08:00 committed by GitHub
parent 049bfa14cb
commit c613eff31c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,14 @@ Use the Dockerized version of AnythingLLM for a much faster and complete startup
`docker pull mintplexlabs/anythingllm:master`
<table>
<tr>
<th>Linux/MacOs</th>
<th>Windows Powershell</th>
</tr>
<tr>
<td>
```shell
export STORAGE_LOCATION=$HOME/anythingllm && \
mkdir -p $STORAGE_LOCATION && \
@ -43,6 +51,25 @@ docker run -d -p 3001:3001 \
mintplexlabs/anythingllm:master
```
</td>
<td>
```powershell
$env:STORAGE_LOCATION="$HOME\Documents\anythingllm";
If(!(Test-Path $env:STORAGE_LOCATION)) {New-Item $env:STORAGE_LOCATION -ItemType Directory};
If(!(Test-Path "$env:STORAGE_LOCATION\.env")) {New-Item "$env:STORAGE_LOCATION\.env"};
docker run -d -p 3001:3001 `
--cap-add SYS_ADMIN `
-v "$env:STORAGE_LOCATION`:/app/server/storage" `
-v "$env:STORAGE_LOCATION\.env:/app/server/.env" `
-e STORAGE_DIR="/app/server/storage" `
mintplexlabs/anythingllm:master;
```
</td>
</tr>
</table>
Go to `http://localhost:3001` and you are now using AnythingLLM! All your data and progress will persist between
container rebuilds or pulls from Docker Hub.