Last active
February 23, 2018 19:01
-
-
Save limafm/aa18d895f1856b15e667bed4b84fc823 to your computer and use it in GitHub Desktop.
Run multiple commands in docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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