Environment refers to the surroundings of an object, regardless of wether it is a living or non-living thing.
It also refers to the aggregate of surroundings things.
Environment can be applied by many things like computer and ecology.
In the case of the computer, it means the hardware configuration and mode of operation.
In this instance of the ecology, environment means the a air, minerals, organisms...etc...
Source: en.wikipedia.org; dictionary.com