Polecenie Docker-Compose wiele
command: bash -c "
python manage.py migrate
&& python manage.py runserver 0.0.0.0:8000
"
Restu Wahyu Saputra
command: bash -c "
python manage.py migrate
&& python manage.py runserver 0.0.0.0:8000
"
---
version: "2"
services:
test:
image: alpine
entrypoint: ["/bin/sh","-c"]
command:
- |
echo a
echo b
echo c
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"