Skip to content

Instantly share code, notes, and snippets.

@limafm
Last active February 23, 2018 19:01
Show Gist options
  • Select an option

  • Save limafm/aa18d895f1856b15e667bed4b84fc823 to your computer and use it in GitHub Desktop.

Select an option

Save limafm/aa18d895f1856b15e667bed4b84fc823 to your computer and use it in GitHub Desktop.
Run multiple commands in docker-compose
PS.: Your image need to have support for bash
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
command: >
bash -c "python manage.py migrate
&& python manage.py runserver 0.0.0.0:8000"
Credits: https://stackoverflow.com/questions/30063907/using-docker-compose-how-to-execute-multiple-commands/30064175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment