-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(stremio-web): update docker compose
refactor(stremio-web): rename RUN_PATCHES env var chore(stremio-web): update README
- Loading branch information
Showing
5 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,54 @@ | ||
# stremio-web | ||
|
||
Docker image for stremio-server (no-cors) and stremio-web. | ||
This docker image contains a built copy of the open source [stremio-web](https://github.com/Stremio/stremio-web/) and a copy of the closed source [stremio-server](http://dl.strem.io/four/master/server.js). | ||
|
||
Feel free to edit the `docker-compose.yml` to update the webpack port. | ||
|
||
## Table of contents | ||
|
||
- [🃏 Features](#-features) | ||
- [🚀 Deploy](#-deploy) | ||
- [📜 Notice](#-notice) | ||
With this image, you can quickly deploy a ready-to-use stremio-web client and server. | ||
|
||
## 🃏 Features | ||
|
||
- Stremio Server (fixed CORS). | ||
- Stremio Web Player. | ||
- Small final image (thanks to multi-stage builds). | ||
- Fully customizable through environment variables and bind mounts. | ||
- Optional patches for better usability (via script). | ||
|
||
## 🚀 Deploy | ||
|
||
1. Edit the `docker-compose.yml` file to suit your needs (e.g. webpack port). | ||
1. Create a `docker-compose.override.yml` file and edit it to suit your needs (***optional***). | ||
2. Run `docker compose up -d`. | ||
|
||
## 📜 Notice | ||
## ⚙️ Configuration | ||
|
||
## Best practice | ||
|
||
Running the container with docker compose, with `APPLY_PATCHES`, `FIX_UNSUPPORTED_MEDIA` and `NO_CORS` env vars is the preferred way to go. | ||
|
||
Example (without compose) | ||
```console | ||
docker run --rm -p 8080:8080 -p 11470:11470 -e APPLY_PATCHES=1 -e FIX_UNSUPPORTED_MEDIA=1 -e NO_CORS=1 -v ${PWD}:/root/.stremio-server n0bodysec/stremio | ||
``` | ||
|
||
## Docker Compose | ||
|
||
Using docker compose is the preferred way to go. | ||
```shell | ||
docker compose up -d | ||
``` | ||
|
||
## Apply custom patches | ||
|
||
To apply the optional patches (see `patches.sh`) you **must** set the environment variable `APPLY_PATCHES`. | ||
```shell | ||
docker run -e APPLY_PATCHES=1 n0bodysec/stremio | ||
``` | ||
|
||
## Environment variables | ||
|
||
| **Variable** | **Description** | **Source** | | ||
|----------------------- |------------------------------------- |------------ | | ||
| APPLY_PATCHES | Apply patches defined in patches.sh | run.sh | | ||
| FIX_UNSUPPORTED_MEDIA | Fix for HTTP 415 | patches.sh | | ||
| FIX_CORS | **Deprecated.** See NO_CORS | patches.sh | | ||
| NO_CORS | Do no check CORS in the SERVER | server.js | | ||
|
||
If you change the webpack port, remember to update the exposed docker port as well. | ||
For more environment variables, please check the `server.js` file. | ||
Undocumented env vars: `APPDATA`, `APP_PATH`, `BLUEBIRD_DEBUG`, `BLUEBIRD_LONG_STACK_TRACES`, `BLUEBIRD_WARNINGS`, `BLUEBIRD_W_FORGOTTEN_RETURN`, `CASTING_DISABLED`, `COLORTERM`, `DEBUG`, `DEBUG_COLORS`, `DEBUG_COLORS`, `DEBUG_DEPTH`, `DEBUG_FD`, `DEBUG_MIME`, `DEBUG_SHOW_HIDDEN`, `DISABLE_CACHING`, `DISABLE_CACHING`, `FFMPEG_BIN`, `FFMPEG_DEBUG`, `FFSPLIT_DEBUG`, `FORCE_COLOR`, `HOME`, `HTTPS_CERT_ENDPOINT`, `NODE_DEBUG`, `NODE_ENV`, `NO_CORS`, `NO_DEPRECATION`, `OPEN`, `OSTYPE`, `PATHEXT`, `PORT`, `READABLE_STREAM`, `SUDO_USER`, `SystemRoot`, `TEMP`, `TERM`, `TMP`, `TMPDIR`, `TRACE_DEPRECATION`, `TV_ENV`, `WEBUI_LOCATION`, `YTDL_NO_UPDATE`, `npm_config_arch`, `npm_config_platform`, | ||
`windir` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '3.9' | ||
|
||
services: | ||
stremio: | ||
image: stremio | ||
build: . | ||
ports: | ||
- '11470:11470' | ||
- '8080:8080' | ||
volumes: | ||
- ./data/:/root/.stremio-server | ||
environment: | ||
APPLY_PATCHES: 1 | ||
FIX_UNSUPPORTED_MEDIA: 1 | ||
NO_CORS: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters