# Launch custom built Docker container with docker-compose

### Launch custom built Docker container with docker-compose

```
docker-compose up --scale spark-worker=3
```

It is better to run as background task to free up the terminal by:

```
nohup docker-compose up --scale spark-worker=3 &
```

The above commands starts up Spark cluster docker container with 1 spark master node and 3 spark worker nodes

The worker nodes are the ones that run the Spark jobs

Launch a web browser, connect to Master node \<IP address>:8080

The IP address can be the localhost or the IP address of the server that runs the docker

For all the docker containers used in the class, they are available for download

![](/files/-M1daIJHPsky8g2fZ-O8)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://george-jen.gitbook.io/data-science-and-apache-spark/launch-custom-built-docker-container-with-docker-compose.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
