instructions to add custom bridges into docker installation

affficionado 2021-03-15 00:40:40 +03:00
parent 7edd64cc98
commit a56fe6595d

@ -45,4 +45,18 @@ You can save this file as `docker-compose.yml`, create a `whitelist.txt` file ne
|Function|Command|
|----|----|
|Shell access (live container)|`docker exec -it rss-bridge /bin/sh`|
|Realtime container logs|`docker logs -f rss-bridge`|
|Realtime container logs|`docker logs -f rss-bridge`|
# Adding custom bridges
If you want to add a bridge that is not part of [`/bridges`](https://github.com/RSS-Bridge/rss-bridge/tree/master/bridges), you can specify an additional layer to copy necessary files to the `rss-bridge` container.
_Here **root** is folder where `docker-compose.yml` and `whitelist.txt` reside._
1. Create `bridges` folder in root, copy your [bridges files](https://github.com/RSS-Bridge/rss-bridge/wiki/How-to-create-a-new-Bridge) there, and edit `whitelist.txt` to allow new bridges.
2. Add `dockerfile: Dockerfile` line under `build` section to `docker-compose.yml` (from the above).
3. Create `Dockerfile` in root:
```Dockerfile
FROM rssbridge/rss-bridge:latest
COPY ./bridges /app/bridges
```
4. Run `docker-compose up` to recreate service.