Top "Docker-compose" questions

Compose is a tool for defining and running complex applications with Docker.

Using Docker-Compose, how to execute multiple commands

I want to do something like this where I can run multiple commands in order. db: image: postgres web: build: . …

docker yaml docker-compose
How to rebuild docker container in docker-compose.yml?

There are scope of services which defined in docker-compose.yml. These service have been started. I need to rebuild only …

docker docker-compose docker-container
How to fix docker: Got permission denied issue

I installed Docker in my machine where I have Ubuntu OS. After than I installed docker, when I run sudo …

docker docker-compose
How to mount a single file in a volume

I am trying to dockerize a PHP application. In the dockerfile, I download the archive, extract it, etc. Everything works …

docker docker-compose
How to clear the logs properly for a Docker container?

I use docker logs [container-name] to see the logs of a specific container. Is there an elegant way to clear …

docker docker-compose boot2docker docker-machine
How to use environment variables in docker compose

I would like to be able to use env variables inside docker-compose.yml, with values passed in at the time …

docker docker-compose
What is the difference between docker-compose ports vs expose

What is the difference between ports and expose options in docker-compose.yml

docker docker-compose
Docker Compose wait for container X before starting Y

I am using rabbitmq and a simple python sample from here together with docker-compose. My problem is that I need …

docker-compose
How do I define the name of image built with docker-compose

I'm using docker-compose to create my development environment. I want to build a specific image, but I don't know how …

docker docker-compose orchestration
Interactive shell using Docker Compose

Is there any way to start a interactive shell in a container using Docker Compose only? I've tried something like …

shell docker interactive docker-compose