Answers for "run docker compose"

21

install docker compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Posted by: Guest on April-06-2020
4

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
4

docker run command on container

sudo docker exec -it <container name> <command>
Posted by: Guest on July-04-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 "run docker compose"

Python Answers by Framework

Browse Popular Code Answers by Language