Top "Docker-compose" questions

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

How to use local docker images with Minikube?

I have several docker images that I want to use with minikube. I don't want to first have to upload …

linux docker kubernetes docker-compose
How to get docker-compose to always re-create containers from fresh images?

My docker images are built on a Jenkins CI server and are pushed to our private Docker Registry. My goal …

docker docker-compose
How do I set hostname in docker-compose?

In my docker-compose.yml file, I have the following. However the container does not pick up the hostname value. Any …

docker docker-compose
Copying files to a container with Docker Compose

I have a Dockerfile where I copy an existing directory (with content) to the container which works fine: Dockerfile FROM …

docker copy docker-compose volumes
Communication between multiple docker-compose projects

I have two separate docker-compose.yml files in two different folders: ~/front/docker-compose.yml ~/api/docker-compose.yml How can I …

networking docker docker-compose
How to correctly link php-fpm and Nginx Docker containers?

I am trying to link 2 separate containers: nginx:latest php:fpm The problem is that php scripts do not work. …

php nginx docker dockerfile docker-compose
How to persist data in a dockerized postgres database using volumes

My docker compose file has three containers, web, nginx, and postgres. Postgres looks like this: postgres: container_name: postgres restart: …

postgresql docker docker-compose docker-volume
Provide static IP to docker containers via docker-compose

I'm trying to provide static IP address to containers. I understand that I have to create a custom network. I …

docker docker-compose
How to pass arguments to a Dockerfile?

I am using RUN instruction within a Dockerfile to install a rpm RUN yum -y install samplerpm-2.3 However, I want …

docker dockerfile docker-compose docker-registry dockerhub
How to specify Memory & CPU limit in docker compose version 3

I am unable to specify CPU & memory for services specified in version 3 . With version 2 it works fine with "mem_…

docker docker-compose