Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

insert bash command to docker-compose file

# -c flag indicates to read from string. Combine with &&
command: >
    bash -c "python manage.py makemigrations
    && python manage.py migrate
    && python manage.py runserver 0.0.0.0:8000"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #bash #command #file
ADD COMMENT
Topic
Name
4+5 =