The mayor and council shall appoint a city attorney who shall be an attorney-at-law licensed to engage in the practice of law in Georgia and who shall be a resident of the city during his tenure. The city attorney shall serve at the pleasure of the mayor and council and shall receive such compensation as they shall determine.