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.

0
votes
1answer
33 views

Why Docker cant launch container?

I have docker-compose file with one image (httpd) and one volume that look into ./ folder (It contains only one index.html static file). When I start my computer I launch this image with docker-...
0
votes
0answers
13 views

Issues trying to run multiple php-fpm containers for different environments for the same application behind a traefik proxy

I am setting up a live and test environment for a website I am hosting. Currently, I am facing issues and I can't seem to figure out why it is happening. I am using a MySQL, Nginx and PHP-fpm ...
-1
votes
0answers
16 views

From container to tunnel from host OS

I am trying to use a tunnel to a remote server from my Host OS (Port 3333 on host OS to port 3306 remote server), and accessing this tunnel from a docker container (Devilbox php container). Looking ...
0
votes
0answers
25 views

Restart service in a docker container

I'm building a docker container with a service X. I would like to restart service X programmatically from other micro-service in other container. At the moment, we developed a small Flask app that is ...
0
votes
1answer
23 views

How to keep previous containers on docker-compose up?

I am running a CI/CD pipeline that builds my service and ends with docker-compose up -d which brings up the service with a new docker image tag (my-service:tag1). But when I look at docker ps -a the ...
0
votes
1answer
44 views

How do I make NFS volumes reliable in Docker?

I host various docker containers on my Ubuntu 18 machine. A few of them require storing their data on my Synology NAS. At first, I was using the host machine's /etc/fstab to control NFS mounts, which ...
1
vote
1answer
31 views

i have questions about docker-compose

postgres: image: healthcheck/postgres:alpine environment: POSTGRES_USER: postgres What is the default user of postgresql? How does hardcoding the postgres user improve security? What special ...
1
vote
1answer
36 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
44 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
18 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
38 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
0answers
49 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. ...
1
vote
1answer
54 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
47 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
47 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
41 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 ...
1
vote
1answer
56 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
16 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
31 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
26 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
78 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
25 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
157 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
145 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
4 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
27 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
54 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
11 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' ...
3
votes
1answer
48 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
375 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
30 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
137 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
68 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
89 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
72 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
23 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 ...
1
vote
1answer
1k 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
617 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
83 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
56 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
87 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....
3
votes
1answer
114 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
206 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
5k 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
35 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
240 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
219 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
177 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
91 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 ...