Update README with better docker information.
This commit is contained in:
parent
a4f10bfe66
commit
2c67369058
1 changed files with 14 additions and 15 deletions
29
README.md
29
README.md
|
|
@ -17,29 +17,28 @@ configurable media root for security.
|
||||||
|
|
||||||
## Quick start with Docker (recommended)
|
## Quick start with Docker (recommended)
|
||||||
|
|
||||||
```bash
|
|
||||||
# 1. Build the image
|
|
||||||
docker build -t videopress .
|
|
||||||
|
|
||||||
# 2. Run — replace /your/video/path with the real path on your host
|
Step. 1. You have two options
|
||||||
docker run -d \
|
A. Build the image
|
||||||
|
`docker build -t videopress .`
|
||||||
|
|
||||||
|
B. Use the pre-built image
|
||||||
|
Already included in the `docker-compose.yml` file witht his project.
|
||||||
|
|
||||||
|
Step 2. Run — replace `/your/video/path` with the real path on your host
|
||||||
|
A. Using `docker run`:
|
||||||
|
|
||||||
|
```docker run -d \
|
||||||
--name videopress \
|
--name videopress \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
-p 8080:8080 \
|
-p 8080:8080 \
|
||||||
-v /your/video/path:/media \
|
-v /your/video/path:/media \
|
||||||
videopress
|
videopress
|
||||||
|
|
||||||
# 3. Open http://localhost:8080
|
|
||||||
```
|
```
|
||||||
|
B. Using Docker Compose
|
||||||
|
`docker compose up -d`
|
||||||
|
|
||||||
### With docker compose
|
Step 3. Open http://localhost:8080
|
||||||
|
|
||||||
```bash
|
|
||||||
# Edit the volume path in docker-compose.yml (or export the env var):
|
|
||||||
export MEDIA_HOST_PATH=/your/video/path
|
|
||||||
|
|
||||||
docker compose up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue