Moving from directory to subdomain

Your yml file still has the subfolder setting enabled:

DISCOURSE_RELATIVE_URL_ROOT: /

Delete that line from the file and rebuild again.