diff --git a/Docker.md b/Docker.md index 0a47586..bb94eb9 100644 --- a/Docker.md +++ b/Docker.md @@ -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`| \ No newline at end of file +|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. \ No newline at end of file