Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker compose multiple command

version: '3'

services:
  app:
    build:
      context: .
    command: >
      sh -c "python manage.py wait_for_db &&
             python manage.py migrate &&
             python manage.py runserver 0.0.0.0:8000"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker #compose #multiple #command
ADD COMMENT
Topic
Name
4+5 =