mik-laj commented on a change in pull request #18199:
URL: https://github.com/apache/airflow/pull/18199#discussion_r707249377



##########
File path: 
docs/docker-stack/docker-operator-with-localexecutor-in-docker-compose.md
##########
@@ -0,0 +1,87 @@
+# Using the DockerOperator with the LocalExecutor in Docker Compose
+
+This guide will allow you to run the DockerOperator using the LocalExecutor 
with
+Apache Airflow deployed on Docker Compose. The guide is split into four 
consecutive steps:
+
+* 1. Preparing the docker-compose.yaml
+* 2. Adding a new services in the docker-compose.yaml
+* 3. Creating a DAG that connects to the Docker API using this proxy
+* 4. Testing the DockerOperator
+
+To deploy Airflow on Docker  with Docker Compose you should fetch the 
docker-compose.yaml:
+
+```
+curl -LfO 
'https://airflow.apache.org/docs/apache-airflow/2.1.2/docker-compose.yaml'
+```
+
+For more information about running Airflow in Docker refer to the following
+[documentation](https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html).
+
+## 1. Preparing the docker-compose.yaml
+
+First you need to adapt the standard docker-compose.yaml file to work with
+the LocalExecutor and DockerOperator:
+
+1. line 50: replace `CeleryExecutor` with `LocalExecutor`
+2. line 58: add the `apache-airflow-providers-docker==2.1.0` package to 
`_PIP_ADDITIONAL_REQUIREMENTS`
+3. comment out or delete lines: 53, 65-66, 85-94, 118-128, 140-150

Review comment:
       Can you describe these changes in more detail?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to