Raised beds provide the same advantages as container pots but for less cost. The primary disadvantage is you can’t move it.
Both raised beds and pots give you at least a foot-depth of loose soil with good drainage. It is easier to have denser plantings because you do not use rows.
See This Old House’s video on Raised Beds.