Composing and running the scraper locally with docker-compose
Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command and a simple configuration file, you create and start all the services from your configuration.
Getting ready
The first thing that needs to be done to use Compose is to make sure it is installed. Compose is automatically installed with Docker for macOS. On other platforms, it may or not be installed. You can find the instructions at the following URL: https://docs.docker.com/compose/install/#prerequisites.
Also, make sure all of the existing containers that we created earlier are not running, as we will create new ones.
How to do it
We proceed with the recipe as follows:
- Docker Compose uses a
docker-compose.yml
file that tells Docker how to compose containers asservices
. In the10/05
folder there is adocker-compose.yml
file to start up all the parts...