Skip to content

Commit c613eff

Browse files
[Docker] Windows Docker command in Powershell (#480)
* wip * side by side test * patch syntax highlighting * remove spacing formatting * swap powershell command
1 parent 049bfa1 commit c613eff

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docker/HOW_TO_USE_DOCKER.md

+27
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ Use the Dockerized version of AnythingLLM for a much faster and complete startup
3131
3232
`docker pull mintplexlabs/anythingllm:master`
3333

34+
<table>
35+
<tr>
36+
<th>Linux/MacOs</th>
37+
<th>Windows Powershell</th>
38+
</tr>
39+
<tr>
40+
<td>
41+
3442
```shell
3543
export STORAGE_LOCATION=$HOME/anythingllm && \
3644
mkdir -p $STORAGE_LOCATION && \
@@ -43,6 +51,25 @@ docker run -d -p 3001:3001 \
4351
mintplexlabs/anythingllm:master
4452
```
4553

54+
</td>
55+
<td>
56+
57+
```powershell
58+
$env:STORAGE_LOCATION="$HOME\Documents\anythingllm";
59+
If(!(Test-Path $env:STORAGE_LOCATION)) {New-Item $env:STORAGE_LOCATION -ItemType Directory};
60+
If(!(Test-Path "$env:STORAGE_LOCATION\.env")) {New-Item "$env:STORAGE_LOCATION\.env"};
61+
docker run -d -p 3001:3001 `
62+
--cap-add SYS_ADMIN `
63+
-v "$env:STORAGE_LOCATION`:/app/server/storage" `
64+
-v "$env:STORAGE_LOCATION\.env:/app/server/.env" `
65+
-e STORAGE_DIR="/app/server/storage" `
66+
mintplexlabs/anythingllm:master;
67+
```
68+
69+
</td>
70+
</tr>
71+
</table>
72+
4673
Go to `http://localhost:3001` and you are now using AnythingLLM! All your data and progress will persist between
4774
container rebuilds or pulls from Docker Hub.
4875

0 commit comments

Comments
 (0)