Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [docker-compose]

Docker-compose is a tool that is able to run multiple container by issuing `docker-compose up`. One of the features is that DNS mappings could be made between the containers so that they can find each other.

1
vote
3answers
24 views

docker-compose.yml - make network name configurable via environment variable

I have a docker compose file with env variables for stage specific configurations. As long as env variables are used in values in docker-compose.yml everything is fine, but the problem is with the ...
0
votes
0answers
24 views

On which interface/ip should docker containers communicate?

I have a web server and a mysql server setup in docker composer: services: db: .... networks: - bnet web: .... networks: -bnet networks: bnet: It works fine if web connects to mysql ...
3
votes
1answer
15 views

When would I use docker-compose's “--service-ports” flag?

Docker-compose's run reference includes the "--service-ports" flag. --service-ports Run command with the service's ports enabled and mapped to the host. Source: https://...
0
votes
0answers
3 views

Scaling services but varying the individual container configuration

When using replicas/scale in a service section of a docker-compose description file, docker-compose automatically balance name resolution between the different containers part of that service: sh$ ...
0
votes
1answer
15 views

Any suggestion for a provider to deploy a first Dockerized application?

To conclude my Docker course, I would like to make my students deploying an app on some cloud provider. A priori, the deployment will be on a single host using docker-compose (i.e., no swarm, no ...
0
votes
0answers
5 views

How to create replicas in docker-compose when `scale` is deprecated?

According to docker-compose issue #5586, scale is deprecated. The replacement is deploy.replicas but that latter is not handled by docker-compose, only by docker stack implying you have to run Docker ...
1
vote
0answers
5 views

Coding conventions for docker-compose files?

Is there some globally admitted coding conventions for docker-compose files? Below is a sample docker-compose.yml from a small project we have here: version: 3 networks: net: driver: 'bridge' ...
4
votes
1answer
40 views

Has `docker-compose` to be phased out in favor of `docker stack`?

According to the August 2017 article the core functionalities of docker-compose were integrated into the new docker stack command. At the end of the article, the author also assumes docker-compose ...
1
vote
1answer
33 views

Docker stack deploy doesn't pull images

I'm launching through Ansible (just SSH basically) a docker stack deploy, the issue is also true when launching directly from a manager: docker stack deploy --prune --with-registry-auth -c /docker/...
0
votes
0answers
15 views

Harbor registry installation/upgrade

I recently started working with docker image registry called Harbor. I could not find any tags related to that. My scenario: In one of the servers at work, there is harbor installed, along with ...
0
votes
0answers
34 views

ucp-reconcile container exited with status code:

I am getting this error when trying to install UCP 3.1.1. The command used to run the UCP is : sudo docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp:3.1.2 ...
3
votes
1answer
47 views

How to convert a docker-compose file to kubernetes file(s)?

Is there any easy way to convert a docker-compose.yml file to Kubernetes file(s)?
1
vote
1answer
33 views

How to add LinkedIn's Burrow to a Docker Compose?

It appears LinkedIn doesn't have an official Burrow docker image on Docker Hub, but there are others who have forked it. However, I can't find any examples of how to add any of them to a docker ...
2
votes
2answers
28 views

OOM when running Bitbucket pipelines

as one (sometimes failing) step of our pipeline we setup environment via installation of docker which runs 3 containers through own docker-compose. Unfortunately we could not figure out how to ...
2
votes
1answer
18 views

How to create a preemptable docker container?

Is there any way by which I can set a lifetime for a container after that much of time it should be stopped automatically and only awake when someone send a request. I wanted something like ...
0
votes
1answer
98 views

Best practice for Postgres setup with docker-compose

I have a docker-compose script which starts a Postgres container and an app container like so db: image: postgres:10.6 restart: always ports: - 5432:5432 app: image: test_app:latest ...
0
votes
1answer
77 views

How can you pass private environment variables to FARGATE tasks specified from a Docker Compose config

I am using an existing docker-compose.yml to migrate an app to ECS. The config references several $ENV vars which I used to pass in simply as environment variables when running docker-compose up. One ...
3
votes
1answer
38 views

How do you instruct AWS FARGATE to provision a t2.small via ECS CLI instead of the default micro?

I am trialling AWS ECS for the first time. I've run through the tutorials and now I'm trying to deploy an existing Docker Compose suite which I've been using on Digital Ocean for some time. I have ...
1
vote
3answers
50 views

Should I run several applications in Docker in a single server?

I have a server,32Gb ram, i7 processor and 2TB hard disk, with Docker engine running in it. I have like 100 development application to be migrated to this docker server. So is it a good practice to ...
0
votes
0answers
50 views

How should I run a multicontainer app/platform with nginx behind traefik

I have Traefik reverse proxy running to allow a couple of docker containerized apps to run on the same domain just to learn about running multiple containers following https://www.smarthomebeginner....
4
votes
1answer
103 views

Error while following Docker get-started part 3

I am learning Docker by following the get started on its official page. I got stuck at part 3 when I tried to run docker service ps getstartedlab_web the containers fail to start. Checking the ...
0
votes
0answers
47 views

How to enable CORS in Geoserver on Docker?

I want to enable CORS in Geoserver (installed with Tomcat 8). The goal is to access Geoserver maps from Kibana. I made some changes in tomcat/conf/web.xml. But it only works when I install Geoserver + ...
2
votes
2answers
1k views

How can I force Docker Compose to rebuild containers when dockerfile changes?

I am using docker-compose to start 2 containers using the following docker-compose.yaml. version: '2.4' services: myservice1: container_name: mycontainername build: context: . ...
1
vote
1answer
27 views

What is the behavior if docker compose fails?

It seems to me that all the containers attempted to be launched are removed if Docker Compose fails for one container being launched. Is this standard behavior, or is this just an artifact of my ...
3
votes
0answers
173 views

SSL error when deploying from gitlab runner (GitLab-CI) to remote docker host

I am trying to deploy an docker image, which is located inside the gitlab.com registry, to an external docker host. The docker host was created using docker-machine. I am using a shared runner and ...
2
votes
0answers
120 views

Should I use systemd or docker-compose to replace Upstart for keeping Docker containers running on my systems?

We are talking about Docker containers as sysdig, consul, fluentd, mesos-slave, etc. that we are running on almost all machines. Currently we are using Ubuntu's Upstart and CoreOS's Fleetctl. We're ...
1
vote
1answer
93 views

Error during setup of clairctl for container scanning with clair

I am trying to setup clairctl to scan our application images and so wanted to install the full stack of clairctl, clair scanner & postgress database. I did the following steps: Acquired a VM ...
0
votes
0answers
45 views

How to intercept and redirect network communication inside docker containers?

I am fairly new to Docker-compose and have been tinkering around a bit. in the process, i came across a requirement where i need to close down external internet traffic, and redirect requests to ...
2
votes
1answer
37 views

Built codebase doesnt appear after deploying

I'm packaging and shipping a custom code base of Wordpress with a Dockerfile in to my private container registry. Dockerfile: FROM wordpress:latest ADD . /var/www/html Then on the deployment ...
0
votes
0answers
200 views

Use Traefik with Jenkins don't work

I'm trying to use Traefik with a Jenkins container, but it does not work. This is my docker-compose.yml: version: '2' services: jenkins: image: bitnami/jenkins:latest # ports: # - '...
0
votes
0answers
54 views

Best alternative to deploy/update docker using Jenkins for CI/CD

I'm running Jenkins as a docker image, and I'm looking for the optimal way to deploy new (or update existing) docker images (example staging and prod environment). I've founded this example : https://...
3
votes
1answer
565 views

docker compose & azure key vault - passing secrets to a container on startup

I am using docker-compose to create 5 containers that run my application. Two containers need credentials retrieve from Azure Key Vault (web.config passwords to access 3rd party service). As I am ...
2
votes
1answer
85 views

Persist Changes to New Docker Image - neo4j

I am trying to create a new image based on the neo4j:latest image. What is the proper way to persist to a new image and run a container based on the image? I have these goals: Save the new password ...
4
votes
1answer
63 views

Docker: strategy-advise for a rookie

I am VERY new to Docker and I looking for a confirmation of my views and my usage of Docker in my use-cases. I'll try it with examples: I have a T3 application. Every tier is a basic requirement (...
-1
votes
1answer
77 views

CD (Continuous Deployment) best practices for managing configuration [duplicate]

My CD pipeline: Get docker image (created and pushed during CI stage) Copy docker-compose .yml template to target server Run the app Let's go straight to the 3rd point. I can run the app using ...
2
votes
1answer
71 views

What are the correct volume maps for zabbix running on Docker?

I want to run zabbix inside Docker and there are images for MySQL, Nginx and zabbix server ready to go. I know that to keep the containers stateless I need to map a volume on the host to the ...
6
votes
3answers
140 views

Continuous Deployment best practices for managing application configuration

My CD pipeline: Get Docker image (created and pushed during CI stage). Copy docker-compose .yml template to target server. Run the app. Let's go straight to the 3rd point. I can run the app using ...
-1
votes
1answer
36 views

Docker hostnames are not resolved in a custom network

I have the following configuration in my docker-composer.yml file. version: '3.3' services: service-1: container_name: 'service-1' build: './service-1' depends_on: - 'mongo' ...
2
votes
2answers
81 views

Is Docker compose installation required everytime I start a new session on docker CLI

I have downloaded docker toolbox to learn docker and I have started with docker compose topic. I had run few docker-compose command and next time when I restart the docker CLI(here docker quickstart ...
0
votes
0answers
27 views

Load Balacing Nodejs application using Nginx and Docker

I am following this YouTube tutorial on how to configure Nginx Server on Docker /docker_compose.yml version: '3' services: nodecluster: build: nodecluster ports: - "49160:...
4
votes
1answer
2k views

Internal network between container Docker Compose with outgoing connection

I am a newbie to Docker. I am trying to run my application containing from multiple containers Here is my docker-compose.yml file version: '3.3' services: php-service: container_name: 'php-...
3
votes
1answer
119 views

Diagnosing large delay in file sync to Docker for Mac

Preface: I understand that Docker for Mac has file syncing performance issues, but everything I've read about the issues is related to slow read access. I don't really have a problem with slow read ...
3
votes
1answer
259 views

Using docker-compose, what's the recommended way to handle different sets of containers for dev and prod?

I'm creating a webapp with a python backend, Nginx as the server, and Vue as my frontend web framework. When deploying to production, I build an nginx container that, on build, compiles all my ...
5
votes
1answer
211 views

What are best practices for sharing Docker compose files with ops team to use in Docker stack

I'm looking for best practices to share the Docker compose files created by developers with the people that do the deployment. We use 2 docker compose files: docker-compose.yml and docker-compose....
1
vote
1answer
2k views

Change owner of files created inside a Docker container without changing the Dockerfile

When I create a file inside a container with docker-compose run web touch test the file owns to root:root. I want to change it to be $USER without to use chown. I'm aware of the --user option but it ...
2
votes
1answer
89 views

Scanning fs in a Docker container is (much) slower than on host?

Is scanning/searching the filesystem slower in a Docker container, than on the host? Seems a lot slower from my testing and sometimes I get an EIO scan error. Specifically I am scanning a read-only (:...
1
vote
1answer
208 views

Error while trying to run docker redis image on Alpine Linux 3.7.0

Specifications Microsoft Windows [Version 10.0.14393] VirtualBox 5.2.8 Alpine Linux Extended 3.7.0 Docker Info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 1 Server Version: 17.10.0-ce ...
0
votes
2answers
328 views

docker-compose local variable declare and use

In the programming language we can define and declare a variable and use it later in the program, can we do same in docker-compose file? For example in Java: int x = 100; System.out.println("...
5
votes
2answers
183 views

How to move disk image in the command line?

As answered in this questions: Does Docker on MacOS support tmpfs? In order to run in memory docker, I need to move docker volumes to ramdisk. In macOS I can do it through docker preferences. However, ...
0
votes
0answers
37 views

docker lemp stack firewall and isolation

I am currently developing a web app to be run inside of a docker lemp stack. at this point, my compose file has 3 services: s_nginx, s_php, s_mariadb. there are 3 networks defined in the compose ...