i'd like to slip in a jupyter server on my dockerized airflow so that i can develop more easily in that environment. i see from Using Docker-Compose, how to execute multiple commands. that you can easily run multiple commands in docker-compose with a 'bash -c' .
here is what i've tried:
command: bash -c "airflow webserver ; nohup jupyter notebook --ip 0.0.0.0 --no-browser &"
also tried:
command: bash -c "airflow webserver && nohup jupyter notebook --ip 0.0.0.0 --no-browser &"
i know this is possible because i can do something like:
docker exec -it -u airflow 8b2 jupyter notebook --ip 0.0.0.0 --NotebookApp.token='airflow' --no-browser
this of course required adding the port 8888:8888 mapping for j:
ports:
- ${AIRFLOW_WEBSERVER_PORT:-8080}:8080
- 8888:8888
thanks!