Getting ready

The first thing we want to do is make sure that RabbitMQ is running in a container and assigned to a custom Docker network, where various containers connected to that network will talk to each other. Among many other features, it also provides software defined network (SDN) capabilities to provide various types of integration between containers, hosts, and other systems.

Docker comes with several predefined networks built. You can see the networks currently installed by using the docker network ls command:

$ docker network lsNETWORK ID   NAME                                     DRIVER  SCOPEbc3bed092eff bridge                                   bridge  local26022f784cc1 docker_gwbridge                          bridge  local448d8ce7f441 dockercompose2942991694582470787_default bridge  local4e549ce87572 dockerelkxpack_elk bridge ...

Get Python Web Scraping Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.