To fulfil your use case, you must install the Agile Platform using the standalone installers available in the TechCenter, here. We simplified the Community Edition installer to remove friction to new users. Therefore your advanced scenario is not covered.
After installing the Agile Platform using the standalone installers, simply upload the attached Community Edition license to Service Center.
Hope this addresses your use case. Thanks!