If you sell beer directly from your brewery, at a taproom, via an online shop, or at markets, you will need a premises licence from your local council. This is separate from HMRC duty registration.
If you only produce and sell wholesale to other licensed premises (pubs, retailers), you may not need a premises licence for the brewery itself, check with your local licensing authority.