version: '2'

services:

  rss2twitter:
    image: umputun/rss2twitter:latest
    container_name: nginx
    hostname: nginx
    restart: always

    logging: &default_logging
      driver: json-file
      options:
        max-size: "10m"
        max-file: "5"

    environment:
      - FEED=http://lorem-rss.herokuapp.com/feed?unit=second&interval=30
      - REFRESH=1m
      - TWI_CONSUMER_KEY
      - TWI_CONSUMER_SECRET
      - TWI_ACCESS_TOKEN
      - TWI_ACCESS_SECRET
