“Jalankan Docker Compose” Kode Jawaban

Instal 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
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

Jalankan Docker Compose

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

docker run command pada wadah

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

Masukkan perintah bash ke file compose Docker

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

Jawaban yang mirip dengan “Jalankan Docker Compose”

Pertanyaan yang mirip dengan “Jalankan Docker Compose”

Lebih banyak jawaban terkait untuk “Jalankan Docker Compose” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya