Physico-chemical model of a protocell