Answers for "how to run a project with docker-compose file using docker"

6

docker compose run

# One single docker-compose.yml file
docker-compose up --build -d --remove-orphans

# Specify docker-compose.yml file to run
docker-compose -f docker-compose.yml up --build -d --remove-orphans
Posted by: Guest on June-12-2020
0

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"
Posted by: Guest on January-16-2021

Code answers related to "how to run a project with docker-compose file using docker"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language