services:
  grob:
    platform: linux/amd64
    build:
      context: .
    restart: unless-stopped
    ports:
      - "11331:11331"
    volumes:
      - history:/app/history
    deploy:
      resources:
        limits:
          cpus: 4
          memory: 2048M

  cleaner:
    image: c4tbuts4d/dedcleaner
    restart: unless-stopped
    volumes:
      - history:/history
    environment:
      - DELETE_AFTER=7m
      - SLEEP=1m
      - DIRS=/history
    deploy:
      resources:
        limits:
          cpus: "0.25"
          memory: 128M

volumes:
  history:

