mirror of
https://github.com/tiyn/wiki.git
synced 2025-10-10 01:41:23 +02:00
markdown syntax: formatted all files with prettier
This commit is contained in:
@@ -8,38 +8,44 @@ The official container and documentation was made by [linuxserver](https://hub.d
|
||||
This docker-rebuild is made up by a `docker-compose.yml` file.
|
||||
|
||||
#### Environment-variables
|
||||
|
||||
Set the following environment-variables in the `environment:` section of the docker-compose file.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ------------------- | ---------------------------- | ------- |
|
||||
| PUID | Userid to run the container | |
|
||||
| PGID | Groupid to run the container | |
|
||||
| TZ | specify the timezone | |
|
||||
| Name | Usage | Default |
|
||||
| ------ | ---------------------------- | ------- |
|
||||
| `PUID` | Userid to run the container | |
|
||||
| `PGID` | Groupid to run the container | |
|
||||
| `TZ` | specify the timezone | |
|
||||
|
||||
#### Volumes
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ---------------- | ---------------------- | ------------------------------------ |
|
||||
| config | /config | storage for config files of jellyfin |
|
||||
| media\_movies | /data/movies | storage for movies |
|
||||
| media\_tvshows | /data/tvshows | storage for tvshows |
|
||||
| transcode | /transcode | tmp storage to transcode |
|
||||
| Volume-Name | Container mount | Description |
|
||||
| --------------- | --------------- | ------------------------------------ |
|
||||
| `config` | `/config` | storage for config files of jellyfin |
|
||||
| `media_movies` | `/data/movies` | storage for movies |
|
||||
| `media_tvshows` | `/data/tvshows` | storage for tvshows |
|
||||
| `transcode` | `/transcode` | tmp storage to transcode |
|
||||
|
||||
Because it is useful to have the possibility to use the `media_movies` and `media_tvshows` in multiple containers,
|
||||
it is recommended to use them as external volumes (volumes section: `external: true` instead of `driver: local`).
|
||||
To use the rebuild the volumes have to exist before creating the container (`docker volume create media_movies` and tvshows accordingly).
|
||||
Because it is useful to have the possibility to use the `media_movies` and
|
||||
`media_tvshows` in multiple containers,
|
||||
it is recommended to use them as external volumes (volumes section:
|
||||
`external: true` instead of `driver: local`).
|
||||
To use the rebuild the volumes have to exist before creating the container
|
||||
(`docker volume create media_movies` and tvshows accordingly).
|
||||
|
||||
#### Ports
|
||||
|
||||
Set the following ports in the `ports:` section.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| 8096 | 8096 | TCP | WebUI |
|
||||
| `8096` | `8096` | TCP | WebUI |
|
||||
|
||||
#### Rebuild
|
||||
|
||||
```
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker pull linuxserver/jellyfin:latest
|
||||
@@ -48,7 +54,7 @@ docker-compose up -d
|
||||
|
||||
#### Docker-Compose.yml
|
||||
|
||||
```
|
||||
```yml
|
||||
version: "2"
|
||||
services:
|
||||
jellyfin:
|
||||
@@ -68,12 +74,12 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
config:
|
||||
driver: local
|
||||
transcode:
|
||||
driver: local
|
||||
media_movies:
|
||||
external: true
|
||||
media_tvshows:
|
||||
external: true
|
||||
config:
|
||||
driver: local
|
||||
transcode:
|
||||
driver: local
|
||||
media_movies:
|
||||
external: true
|
||||
media_tvshows:
|
||||
external: true
|
||||
```
|
||||
|
Reference in New Issue
Block a user