Update DOCKER.md:add shell tag on docker run command

Add shell tag & container name option on docker run command.
Hope it make this command more readable
This commit is contained in:
tatuke
2025-02-10 23:22:47 +08:00
committed by GitHub
parent ca45b1847c
commit 9156436c16
+6 -3
View File
@@ -16,14 +16,17 @@ Run this command first to get a dockerized Postgres container running:
## Run from Docker pre-built image
- `docker pull mintplexlabs/vectoradmin` to pull in latest image
- Run the command with env variables and image defined.
`docker run -d -p 3001:3001 \
```shell
docker run -d -p 3001:3001 \
--name vectoradmin \
-e SERVER_PORT="3001" \
-e JWT_SECRET="your-random-string-here" \
-e INNGEST_EVENT_KEY="background_workers" \
-e INNGEST_SIGNING_KEY="random-string-goes-here" \
-e INNGEST_LANDING_PAGE="true" \
-e DATABASE_CONNECTION_STRING="postgresql://vectoradmin:password@xxxxxxx:5432/vdbms" \
mintplexlabs/vectoradmin`
mintplexlabs/vectoradmin
```
## Build docker image from source
@@ -69,4 +72,4 @@ VITE_API_BASE="http://<YOUR_REACHABLE_IP_ADDRESS>:3001/api"
For example, if the docker instance is available on `192.186.1.222` your `VITE_API_BASE` would look like `VITE_API_BASE="http://192.186.1.222:3001/api"` in `frontend/.env.production`.
### Still not working?
[Ask for help on Discord](https://discord.gg/6UyHPeGZAC)
[Ask for help on Discord](https://discord.gg/6UyHPeGZAC)