version: "3.7"

networks:
  graphbot:

volumes:
  output:
    name: graphbot

services:
  app:
    image: registry.picasoft.net/graph-bot:v1.4.3
    container_name: graph-bot
    build: .
    init: true
    networks:
      - graphbot
    volumes:
      - ./config.json:/config.json
      - ./certs:/certs
      - /var/run/docker.sock:/var/run/docker.sock
      - output:/output
    environment:
      CONFIG_FILE: "/config_creds.json"
      OUTPUT_DIRECTORY: "/output"
      CERTS_DIRECTORY: "/certs"
      LOG_LEVEL: "warning"
      CRON_CONFIG: '0 0 * * *'
    env_file:
      - ./secrets/sftp.secrets
    restart: unless-stopped
