docker-compose command bash code example
Example 1: docker compose command
docker-compose start
docker-compose stop
Example 2: docker compose command
docker-compose pause
docker-compose unpause
Example 3: 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"