version: "3"
services:
  jiralert:
    build: .
    image: 127.0.0.1:5000/jiralert:custom
    ports:
      - "9097:9097"
    volumes:
      - ./etc:/etc/jiralert
    command:
      - "--config"
      - "/etc/jiralert/jiralert.yml"
      - "--hash-jira-label"
      - "--hash-with-starts-at"
      - "--log.format"
      - "json"
      - "--log.level"
      - "debug"
    restart: on-failure
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "100m"

networks:
  default:
