📜  将 bash 命令插入 docker-compose 文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:15.306000             🧑  作者: Mango

代码示例1
# -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"