Why do this?
2020-12-03 there is no PECL AMQP extension compatible with PHP 8.0 so you cannot use docker-php-ext-install amqp & docker-php-ext-enable amqp
Latest version 1.10.2 is compatible with PHP < 8. So you have to use dev version from Github and build it from source code