Docker compose를 사용한 Discourse 셀프 호스팅

Yes it’s possible but you’d need to write and support it yourself.

Here’s a Dockerfile someone posted recently for development that might act as a starter

Discourse is open source. Why not read the launcher scripts and templates? (which would also inform your Compose)