“Run Docker Compose” Respostas de código

Instale o docker compor

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
Black Beaver

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
Cippamilalippa

Run Docker Compose

# in de dir where your docker-compose file is located
docker compose up
Clever Capybara

Docker Run Command no contêiner

sudo docker exec -it <container name> <command>
Frantic Frog

Insira o comando Bash no arquivo Docker-Compose

# -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"
RicarHincapie

Respostas semelhantes a “Run Docker Compose”

Perguntas semelhantes a “Run Docker Compose”

Mais respostas relacionadas para “Run Docker Compose” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código