Answers for "run bash on docker compose file"

0

run docker compose

# in de dir where your docker-compose file is located
docker compose up
Posted by: Guest on March-16-2022
0

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"
Posted by: Guest on January-16-2021

Code answers related to "run bash on docker compose file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language