Error while generate VAPID_PRIVATE_KEY and VAPID_PUBLIC_KEY

I get the below error when trying to generate the two keys in topic while performing the command:

docker-compose run --rm web bundle exec rake mastodon:webpush:generate_vapid_key

kdmiller45@aztalker:~/mastodon$ docker-compose run --rm web bundle exec rake mastodon:webpush:generate_vapid_key
Starting mastodon_db_1 … done
Starting mastodon_redis_1 … done
rake aborted!
ArgumentError: secret_key_base for production environment must be a type of String/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:583:invalidate_secret_key_base’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:432:in secret_key_base' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:24:in key_exists?’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:16:in find' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/devise-4.7.1/lib/devise/rails.rb:37:in block in class:Engine
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in instance_exec' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in run’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in block in run_initializers' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in run_initializers’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:361:in initialize!' /opt/mastodon/config/environment.rb:5:in <top (required)>’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in block in require_with_bootsnap_lfi’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:337:in require_environment!' /opt/mastodon/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:520:in block in run_tasks_blocks’
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in <top (required)>' /opt/ruby/bin/bundle:23:in load’
/opt/ruby/bin/bundle:23:in `’
Tasks: TOP => mastodon:webpush:generate_vapid_key => environment