Ejemplo 1: comando docker-compose multiple
command: >
bash -c "python manage.py migrate
&& python manage.py runserver 0.0.0.0:8000"
Ejemplo 2: comando docker-compose multiple
command: |
sh -c "python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
Ejemplo 3: comando docker-compose multiple
command: bash -c "
python manage.py migrate
&& python manage.py runserver 0.0.0.0:8000
"
Ejemplo 4: comando docker-compose multiple
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)