Create a `feed2toot` directory and your custom `feed2toot.ini` with the [feed2toot config](https://gitlab.com/chaica/feed2toot#use-feed2toot) in this directory. You can use the path `/feed2toot` in that file, as the directory will be mounted to that path.
To [create the authorization for feed2toot](https://gitlab.com/chaica/feed2toot#create-the-authorization-for-the-feed2toot-app) you can also use this image:
```bash
docker run --rm -it -v /your/path/feed2toot:/feed2toot samuelph/feed2toot register_feed2toot_app
```
Finally copy the [`cron`](cron) file in the `feed2toot` directory and run the docker image:
```bash
docker run -d -v /your/path/feed2toot:/feed2toot samuelph/feed2toot
```
Optionally you can adjust the cron job to fit your needs by editing the `cron` file. Per default the cron job runs every minute.
To run the image with Docker Compose you can just use this:
```yaml
services:
feed2toot:
image: samuelph/feed2toot
restart: always
volumes:
- /your/path/feed2toot:/feed2toot
```
## Usage with multiple feeds
You can also use a single container to handle multiple feeds. Therefore you should create a folder for each feed in the `feed2toot` folder from above. Don't forget to update the paths in the `*.ini` files. Finally you can add a cronjob for each feed in the `cron` file: