Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
12 views

Is there an equivilent of a Kubernetes ingress for Docker Compose?

I'm more of a software developer than a networking/ops person to give you some context. I'm currently creating an application that is a standard containerised microservices architecture, where my ...
1
vote
1answer
33 views

How to deploy my Express/React app to server with docker-compose and Dockerfiles

Hi, I'm trying to deploy my app to production with Docker, but I struggle a lot. Here is the structure from the root folder : a server folder : runs with Express on port 4000 a web folder : a ...
0
votes
0answers
16 views

Can I contact another service during the build phase of docker-compose?

I have a web application image (web) and a database image (db) that needs to be run using docker-compose. Since my web app needs a content management system to be installed as well, I would like to ...
1
vote
0answers
8 views

Docker - Mount a volume from a container to an other (equivalent volumes_from) in docker-compose 3

I've two containers : nginx & angular. The angular container contains the code and is automatically pulled from the registry when there is a new version (with watchtower). I set up a Shared ...
0
votes
1answer
27 views

Can I configure a swarm node to automatically pull latest images and restart containers?

Right now I'm using Docker Compose to host 15-20 services for my home lab. All of these are running on a single machine which is physically in my house. I have no interest in scalability (i.e. ...
0
votes
1answer
42 views

How should I deploy my projects using Docker, Git and VPS?

I have a VPS and am able to connect trough ssh using Terminal. Every project I have are dockerized and have github repositories. Since I am new to deployments so far my deployment process is manual: $...
2
votes
1answer
35 views

How do you hide sensitive information held in variables on a docker-compose file

I am fairly new to DevOps. I have managed to build myself a CI/DI pipeline for my open source project. As soon as I check-in some code into GitHub, Travis CI takes over, it builds a fresh docker ...
1
vote
1answer
27 views

Best practice for Jenkins docker to deploy to other container

I'm currently experimenting with docker with the potential of using it in future professional projects and am a bit confused about best practices. In my experimental setup I have three docker ...
1
vote
1answer
34 views

Docker Hub to VPS

Note: I am a .NET Developer that is dabbling in DevOps. I want to learn. Current Situation: I have my .NET Core project dockerised. It sits on GitHub and is Open Source. Using Travis CI; as soon as ...
0
votes
0answers
24 views

running a phpUnit test within a docker container

i want to run a specific version of phpUnit WITHIN a docker container. This container will use a specific version of php. i.e php:5.6-apache Its a lareval application. i have install phpunit via ...
0
votes
0answers
15 views

Can't reach by REST API one site from another which are both on the same docker container

I have a docker that works through docker-compose.yml On one container there is an Nginx and several virtualhosts on it with sites I'm trying to get to one site from another by REST API When I make ...
0
votes
1answer
11 views

Nginx routing setup within Docker container, request timing out with 502

I have a React application where a user can enter in some number, there is an algorithm that runs some calculation and spits out a result, but before we get there, Nginx is looking at the request and ...
0
votes
0answers
9 views

Send logs to logstash from another swarm stack

I have 2 stacks in my docker swarm. One is elk (Elastic search, Kibbana, and Logstash) and the other is my web application. For some reasons, I don't want to use the same stack for elk and app ...
5
votes
4answers
70 views

How do you monitor status of multiple docker containers?

My home server has about 15 distinct services running, each represented by a Docker container. Depending on how the developers implemented the Dockerfile, some services have health checks, but most do ...
0
votes
0answers
21 views

Where do I save docker-compose files of a swarm?

We are running Docker Swarm + Ceph. All runs okay. We plan to move more of our internally developed as well as third party applications to Swarm. Now the issue I have is as follows: Let’s say I ...
2
votes
3answers
57 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
25 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
46 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
2answers
26 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
14 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
9 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
44 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
0answers
134 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
24 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
86 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
57 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
57 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
51 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
19 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
385 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
276 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
53 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
53 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
69 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
110 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
118 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
2k 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
28 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
207 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
178 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
127 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
70 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
42 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
306 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
66 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
917 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
133 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
68 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
116 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 ...