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
0answers
8 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 ...
0
votes
2answers
42 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 ...
-2
votes
0answers
30 views

How should I run a daemon in docker?

Normally, when you want docker to run a program, you put it as cmd ["filetorun"]. And you can start docker in such a way that it will restart whenever the program crashes. The thing is that this only ...
0
votes
0answers
21 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
56 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
24 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 + ...
1
vote
2answers
198 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
25 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
115 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
59 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
50 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
28 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 ...
1
vote
1answer
31 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
101 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
48 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
303 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
54 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
51 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
45 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
37 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
104 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
30 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
77 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
26 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
1k 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
101 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
185 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
144 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
1k 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
81 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
156 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
206 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
141 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
34 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 ...
3
votes
1answer
1k views

How can I push multiple containers, created with docker-compose, to a registry

I am using Jenkins pipeline and run a shell command to bring up my linked containers for testing. Once the testing is complete, I want to push the containers to a registry (I would prefer AWS ERC, but ...
5
votes
1answer
276 views

docker-compose fails to recognize when images are rebuilt sometimes … often same code is OK

I have a devops container inside of which I execute docker build and docker-compose up commands which run OK then (on same server or different server with same code) sometimes incorrectly fail to ...
0
votes
1answer
99 views

docker micro-service cannot connect to bitcoin docker

I have a micro-service watchblockchain that makes requests on bitcoin blockchain. When I use both services, everything works just fine. Then I want to put those services in docker containers. ...
0
votes
0answers
366 views

How to implement Auto Review Apps on GitLab with Docker Compose and Swarm

I would like to have an Auto Review App available for every branch of my repo. My project is composed of multiple containers, and uses docker-compose.yml, but GitLab's Auto DevOps doesn't support it ...
6
votes
2answers
714 views

Why should you do port mapping for docker containers?

I have been using docker for a few months and I am just a developer not a DevOps or a networking person. However, I came across a docker-compose which maps an external port to an internal port. ...
3
votes
1answer
1k views

Docker swarm replica stays 0/1 and service stays in status new

I have a problem with my docker swarm. I created a new service with the following command: docker-compose config | docker stack deploy -c - serviceNameX --with-registry-auth The docker-compose file ...
4
votes
2answers
1k views

Docker MongoDB image - How to specify credentials other than in the compose file?

I'm using this docker image https://hub.docker.com/_/mongo/. That image provides a way of initializing a mongodb root database user with env variables which I can specify in the compose file as ...
4
votes
0answers
79 views

Build Design - Docker vs Fedora's Mock

This post is migrated from a reddit post. Parts in bold are to adopt it to SE's format. I'm talking with companies to help streamline/combine their build process. They must do it together and their ...
0
votes
2answers
365 views

How to pass the version to docker-compose?

When I would like to update an app at the moment, docker-compose down, the version in the docker-compose.yaml is changed, subsequently the app is started and the latest version is running. Now I ...
0
votes
1answer
823 views

how to integrate docker-compose or docker run command arguments into SCM and Jenkins build

When I do docker run I have to give extensive argument options for my container setup. To mitigate this and ensure all developers are using the same arguments I switched to docker-compose. Now ...
0
votes
1answer
561 views

Using Jenkins to control docker image build flow

I'm trying to figure out the proper way to get build environments into a CI pipeline. What I want to achieve is: someone pushes to the docker source repo (not registry, a repo with the docker folder)...
1
vote
0answers
301 views

How to deploy with AWS CodePipeline a multicontainer docker environment without dockerfile

I'm using simple docker-compose container images. Here's my docker-compose.yml version: '2' services: db: image: postgres:10.2 ports: - "5432:5432" ...
1
vote
1answer
625 views

Docker Compose V3 app container can't access couchdb container

I am trying to connect to couchdb through the container but my app is not seeing it. However if I use the external address 123.456.789.123:12345 (server_ip:external_port) it works but I need a ...
2
votes
1answer
1k views

How to deal with docker compose's naming convention of named volumes

When defining named volumes in docker-compose.yml, their names are prepended with their parent folder name. This causes a problem when scripts outside of docker compose have to interact with them. The ...
2
votes
1answer
998 views

How to populate docker volumes in a build step to be used by a different container

I currently have a Docker compose based web app that uses Nginx as a reverse proxy that forwards traffic to a Flask and Grafana docker instance. The task at hand is to integrate a SSG (static site ...
5
votes
1answer
2k views

Nginx reverse proxy setup issues with Docker containers

I have two running docker containers: A Docker container running Nginx that serves Angular app resource files that were copied into the Docker image on docker build A Docker container that is an api ...