Skip to content

Commit

Permalink
Update Docker commands to include additional volume mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
roflcoopter committed Mar 3, 2024
1 parent 5f6ff23 commit 5b9e40f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 3 deletions.
51 changes: 48 additions & 3 deletions docs/docs/documentation/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,18 @@ You have to change the values between the brackets `{}` to match your setup.

:::

<details><summary>64-bit Linux machine</summary>
<details>
<summary>64-bit Linux machine</summary>

<Tabs groupId="docker-type">
<TabItem value="docker" label="Docker">

```bash
docker run --rm \
-v {recordings path}:/recordings \
-v {recordings path}:/segments \
-v {recordings path}:/snapshots \
-v {recordings path}:/thumbnails \
-v {config path}:/config \
-v /etc/localtime:/etc/localtime:ro \
-p 8888:8888 \
Expand All @@ -70,6 +74,9 @@ services:
container_name: viseron
volumes:
- {recordings path}:/recordings
- {recordings path}:/segments
- {recordings path}:/snapshots
- {recordings path}:/thumbnails
- {config path}:/config
- /etc/localtime:/etc/localtime:ro
ports:
Expand All @@ -80,14 +87,18 @@ services:
</Tabs>
</details>
<details><summary>64-bit Linux machine with VAAPI (Intel NUC for example)</summary>
<details>
<summary>64-bit Linux machine with VAAPI (Intel NUC for example)</summary>
<Tabs groupId="docker-type">
<TabItem value="docker" label="Docker">
```bash
docker run --rm \
-v {recordings path}:/recordings \
-v {recordings path}:/segments \
-v {recordings path}:/snapshots \
-v {recordings path}:/thumbnails \
-v {config path}:/config \
-v /etc/localtime:/etc/localtime:ro \
-p 8888:8888 \
Expand All @@ -108,6 +119,9 @@ services:
container_name: viseron
volumes:
- {recordings path}:/recordings
- {recordings path}:/segments
- {recordings path}:/snapshots
- {recordings path}:/thumbnails
- {config path}:/config
- /etc/localtime:/etc/localtime:ro
ports:
Expand All @@ -129,6 +143,9 @@ services:
```bash
docker run --rm \
-v {recordings path}:/recordings \
-v {recordings path}:/segments \
-v {recordings path}:/snapshots \
-v {recordings path}:/thumbnails \
-v {config path}:/config \
-v /etc/localtime:/etc/localtime:ro \
-p 8888:8888 \
Expand All @@ -149,6 +166,9 @@ services:
container_name: viseron
volumes:
- {recordings path}:/recordings
- {recordings path}:/segments
- {recordings path}:/snapshots
- {recordings path}:/thumbnails
- {config path}:/config
- /etc/localtime:/etc/localtime:ro
ports:
Expand Down Expand Up @@ -176,6 +196,9 @@ Make sure [NVIDIA Docker](https://github.com/NVIDIA/nvidia-docker) is installed.
```bash
docker run --rm \
-v {recordings path}:/recordings \
-v {recordings path}:/segments \
-v {recordings path}:/snapshots \
-v {recordings path}:/thumbnails \
-v {config path}:/config \
-v /etc/localtime:/etc/localtime:ro \
-p 8888:8888 \
Expand Down Expand Up @@ -204,6 +227,9 @@ services:
container_name: viseron
volumes:
- {recordings path}:/recordings
- {recordings path}:/segments
- {recordings path}:/snapshots
- {recordings path}:/thumbnails
- {config path}:/config
- /etc/localtime:/etc/localtime:ro
ports:
Expand Down Expand Up @@ -233,6 +259,9 @@ You can probably get around this by manually mounting all the needed devices but
docker run --rm \
--privileged \
-v {recordings path}:/recordings \
-v {recordings path}:/segments \
-v {recordings path}:/snapshots \
-v {recordings path}:/thumbnails \
-v {config path}:/config \
-v /etc/localtime:/etc/localtime:ro \
-v /dev/bus/usb:/dev/bus/usb \
Expand All @@ -257,6 +286,9 @@ services:
container_name: viseron
volumes:
- {recordings path}:/recordings
- {recordings path}:/segments
- {recordings path}:/snapshots
- {recordings path}:/thumbnails
- {config path}:/config
- /etc/localtime:/etc/localtime:ro
devices:
Expand Down Expand Up @@ -288,14 +320,18 @@ Configure a substream if you plan on running Viseron on an RPi.

</details>

<details><summary>RaspberryPi 3b+</summary>
<details>
<summary>RaspberryPi 3b+</summary>
<Tabs groupId="docker-type">
<TabItem value="docker" label="Docker">

```bash
docker run --rm \
--privileged \
-v {recordings path}:/recordings \
-v {recordings path}:/segments \
-v {recordings path}:/snapshots \
-v {recordings path}:/thumbnails \
-v {config path}:/config \
-v /etc/localtime:/etc/localtime:ro \
-v /opt/vc/lib:/opt/vc/lib \
Expand All @@ -318,6 +354,9 @@ services:
container_name: viseron
volumes:
- {recordings path}:/recordings
- {recordings path}:/segments
- {recordings path}:/snapshots
- {recordings path}:/thumbnails
- {config path}:/config
- /etc/localtime:/etc/localtime:ro
- /opt/vc/lib:/opt/vc/lib
Expand Down Expand Up @@ -383,6 +422,9 @@ To solve this, you can specify the user `PUID` and group `PGID` as environment v
```bash
docker run --rm \
-v {recordings path}:/recordings \
-v {recordings path}:/segments \
-v {recordings path}:/snapshots \
-v {recordings path}:/thumbnails \
-v {config path}:/config \
-v /etc/localtime:/etc/localtime:ro \
-p 8888:8888 \
Expand All @@ -408,6 +450,9 @@ services:
container_name: viseron
volumes:
- {recordings path}:/recordings
- {recordings path}:/segments
- {recordings path}:/snapshots
- {recordings path}:/thumbnails
- {config path}:/config
- /etc/localtime:/etc/localtime:ro
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ Example Docker command
```bash
docker run --rm \
-v {recordings path}:/recordings \
-v {recordings path}:/segments \
-v {recordings path}:/snapshots \
-v {recordings path}:/thumbnails \
-v {config path}:/config \
-v /etc/localtime:/etc/localtime:ro \
-p 8888:8888 \
Expand All @@ -243,6 +246,9 @@ services:
container_name: viseron
volumes:
- {recordings path}:/recordings
- {recordings path}:/segments
- {recordings path}:/snapshots
- {recordings path}:/thumbnails
- {config path}:/config
- /etc/localtime:/etc/localtime:ro
ports:
Expand Down

0 comments on commit 5b9e40f

Please sign in to comment.