Questions tagged [docker-compose]

Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.

Docker Compose is an officially supported tool to build multi-container applications. An application author or deployer creates a YAML file, generally named docker-compose.yml, that lists the containers or services that make up the application, along with other Docker-specific resources such as named volumes or containers. Docker Compose supports some features of , though it also works well for single-host Docker installations.

This tag is appropriate for questions about setting up the docker-compose.yml file and other questions about deployment or communication between containers managed by Docker Compose. It may be appropriate to tag your questions as as well. Please include a good extract of the docker-compose.yml file as a code block in your question, enough to reproduce the issue you are asking about.

Remember that questions must be programming-related. Questions on how to install Compose, how to use Compose to manage existing prebuilt images, or how to run someone else's Compose file are not programming-related and are not on topic for Stack Overflow.

Key links:

30464 questions
10
votes
1 answer

Symfony server:run in php Docker container

I have a php docker container where is my symfony project. Here is my docker-compose.yml php-fpm: build: ./php container_name: php-fpm links: - db ports: - 9000:9000 - 8448:8448 - 8000:8000 …
Kevin
  • 4,823
  • 6
  • 36
  • 70
10
votes
1 answer

Can I run/convert a Docker-Compose project with/to CoreOS rkt?

Can I use CoreOS rkt, or some related tool, to run my Docker-Compose project? And / or is there some way to convert a Docker-Compose project to something similar, for CoreOS and rkt? My Docker-Compose project works fine on localhost and on the…
KajMagnus
  • 11,308
  • 15
  • 79
  • 127
10
votes
2 answers

Save a file generated by app running on docker to a given path in the host machine

I have a python app running on a docker container and it generates a pdf file. I want to store the generated pdf file in a given path in the host machine. I am not sure on how can this be achieved. Any ideas?
DarcliGht
  • 1,399
  • 2
  • 10
  • 14
10
votes
1 answer

How to specify an iterator in the volume path when using docker-compose to scale up service?

Background: I'm using docker-compose in order to place a tomcat service into a docker swarm cluster but I'm presently struggling with how I would approach the logging directory given that I want to scale the service up yet retain the uniqueness of…
Snowy
  • 101
  • 4
10
votes
6 answers

Wordpress on docker-compose no run

This is my docker-compose.yml version: '2' services: wordpress: image: wordpress ports: - "8080:80" environment: WORDPRESS_DB_PASSWORD: example db: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD:…
alvarezsh
  • 503
  • 3
  • 8
  • 21
10
votes
2 answers

Trouble deploying docker on AWS with ecs-cli

I have a repo on ECS, have created a cluster using ecs-cli ecs-cli configure --region=us-west-2 --profile= --cluster=cluster-1 ecs-cli up --capability-iam --keypair= but then the next step to execute the compose file is when…
blue_zinc
  • 2,410
  • 4
  • 30
  • 38
10
votes
2 answers

Passing arguments for Dockerfiles using Docker compose

I'm trying to use parametrize my dockerfiles on build phase and use arguments in Docker-compose. For example in Docker compose I have defined one service called bpp as following: bpp: build: context: . dockerfile: Dockerfile.bpp args: …
lipponen
  • 733
  • 1
  • 5
  • 18
10
votes
1 answer

How does service discovery work with modern docker/docker-compose?

I'm using Docker 1.11.1 and docker-compose 1.8.0-rc2. In the good old days (so, last year), you could set up a docker-compose.yml file like this: app: image: myapp frontend: image: myfrontend links: - app And then start up the…
larsks
  • 277,717
  • 41
  • 399
  • 399
10
votes
4 answers

Docker Nginx complains: SSL: error:02001002

I'm using the following nginx.conf worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; gzip on; gzip_disable "msie6"; …
berzas
  • 123
  • 1
  • 8
10
votes
1 answer

docker-compose service listen on specified interface

I use docker-machine and docker-compose. The docker machine I use has multiple interfaces. Is there a way to force services to listen only on a specific interface of the machine without defining the ip address of this interface in the port…
user1707414
  • 3,833
  • 2
  • 18
  • 19
10
votes
3 answers

How to kill used port of docker

I am trying to run one docker image and it is saying address already in use driver failed programming external connectivity on endpoint jovial_saha (c79c98cbcef6340cd7867571278f401c9cbea1fd7137a39fe5d7de1c454d4e6e): Error starting userland proxy:…
Karn_way
  • 1,005
  • 3
  • 19
  • 42
10
votes
3 answers

Private gems are not getting installed in docker

I am trying to run a rails app with docker. There are few gems which are getting installed by the ssh url of github which are as follows: Gemfile gem 'swagger-docs', :git => 'git@github.com:xyz/swagger-docs.git', :branch => 'my_branch' I have…
Ajeet Khan
  • 8,582
  • 8
  • 42
  • 65
10
votes
1 answer

Reuse containers with `docker-compose`

I've an app running on multiple Docker containers defined by docker-compose. Everything works fine from my user and the docker-compose ps output looks like: Name Command State …
fernandezcuesta
  • 2,390
  • 1
  • 15
  • 32
10
votes
2 answers

Error on "docker-compose" when I use by pipe with sh ( echo "docker-compose... " | sh )

I've a application which has multi container. to easy installation, I decide to use packaging image. what I expected is like below $ docker run my_application install | sh -> pull all related images from registry $ docker run my_application up |…
keyolk
  • 115
  • 1
  • 8
10
votes
2 answers

Docker compose ignores my Dockerfile when I use the build command

I have this folder structure: /home/me/composetest /home/me/composetest/mywildflyimage Inside composites I have this docker-compose.yml: web: image: test/mywildfly container_name: wildfly ports: - "8080:8080" -…
JSBach
  • 4,679
  • 8
  • 51
  • 98
1 2 3
99
100