mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 15:17:33 +02:00
instructions to add custom bridges into docker installation
16
Docker.md
16
Docker.md
@@ -45,4 +45,18 @@ You can save this file as `docker-compose.yml`, create a `whitelist.txt` file ne
|
|||||||
|Function|Command|
|
|Function|Command|
|
||||||
|----|----|
|
|----|----|
|
||||||
|Shell access (live container)|`docker exec -it rss-bridge /bin/sh`|
|
|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.
|
Reference in New Issue
Block a user