Skip to content
Snippets Groups Projects
Unverified Commit c613eff3 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

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

* wip

* side by side test

* patch syntax highlighting

* remove spacing formatting

* swap powershell command
parent 049bfa14
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,14 @@ Use the Dockerized version of AnythingLLM for a much faster and complete startup ...@@ -31,6 +31,14 @@ Use the Dockerized version of AnythingLLM for a much faster and complete startup
`docker pull mintplexlabs/anythingllm:master` `docker pull mintplexlabs/anythingllm:master`
<table>
<tr>
<th>Linux/MacOs</th>
<th>Windows Powershell</th>
</tr>
<tr>
<td>
```shell ```shell
export STORAGE_LOCATION=$HOME/anythingllm && \ export STORAGE_LOCATION=$HOME/anythingllm && \
mkdir -p $STORAGE_LOCATION && \ mkdir -p $STORAGE_LOCATION && \
...@@ -43,6 +51,25 @@ docker run -d -p 3001:3001 \ ...@@ -43,6 +51,25 @@ docker run -d -p 3001:3001 \
mintplexlabs/anythingllm:master 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 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. container rebuilds or pulls from Docker Hub.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment