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)
|
||||
|
||||
```bash
|
||||
# 1. Build the image
|
||||
docker build -t videopress .
|
||||
|
||||
# 2. Run — replace /your/video/path with the real path on your host
|
||||
docker run -d \
|
||||
Step. 1. You have two options
|
||||
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 \
|
||||
--restart unless-stopped \
|
||||
-p 8080:8080 \
|
||||
-v /your/video/path:/media \
|
||||
videopress
|
||||
|
||||
# 3. Open http://localhost:8080
|
||||
```
|
||||
B. Using Docker Compose
|
||||
`docker compose up -d`
|
||||
|
||||
### With docker compose
|
||||
|
||||
```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
|
||||
```
|
||||
Step 3. Open http://localhost:8080
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue