Questions tagged [docker-compose]

Compose is a tool for defining and running multi-container Docker applications.

Docker Compose is a tool for defining and running multi-container Docker applications.

581 questions
1
vote
1 answer

Use ansible to pull docker image but not run it

I'm using ansible. I want to upload a docker-compose.yml and pull its images, but not start them. I tried this, but it also starts the images: - name: dc docker_compose: project_src: /srv/foo/ state: present pull: true stopped:…
lonix
  • 896
  • 10
  • 23
1
vote
1 answer

trying get a working version of ELK (elastic search + kabana) with docker-compose

So I've spent the last 6 hrs doing this and successfully got it to work with 2 separate docker containers (I just do a docker pull kibana:7.3.2 and docker pull elasticsearch:7.3.2). The tag seems to be important for some reason as latest gives me an…
MrL
  • 111
  • 2
1
vote
0 answers

Docker Compose access specific internet domains/ports without "--net=host"

By default, none of my docker-compose containers have access to the internet. We can expose ports to the host, but not from the internet. Any solutions on the web point me towards using network: host or --net=host, but this would almost totally miss…
fameman
  • 111
  • 2
1
vote
2 answers

Permission denied (publickey) in gitlab self hosted server

I want to setup a ssh connection to my gitlab server. gitlab spec Install via docker-compose : # ---------------------- # # gitlab # # ---------------------- # gitlab: image: gitlab/gitlab-ce:latest restart: always hostname:…
Hadock
  • 123
  • 6
1
vote
1 answer

Route traffic from one docker container through a VPN (provided by a second container)

I need to understand how to make two docker containers work with a scenario like this: There is a branch office with a router and a client. The network is 192.168.190.0/24 and the addresses are 1 and 57. There is somewhere else a VM facing on the…
1
vote
1 answer

Does docker network somehow block access to its host from certain IPs?

My company has a CentOS 7 server with some running docker containers. Normally I can connect to it from my personal computer . But sometimes after I run a docker-compose up command on the server, I cannot connect to it anymore (I try to ping /…
Hien Le
  • 113
  • 4
1
vote
2 answers

Web base application-load balancer

I have two application Java base and Go base application. What is the best way to build a traffic distribution that will send 30% of request traffic to Java base application and 70% to Go base application using load balancer. This activity will be…
Lloyd
  • 11
  • 1
1
vote
0 answers

docker-compose detaches from containers after going up

I'm experiencing a very weird issue inside the terminal. I am using docker-compose to start my microservices, and when I run docker-compose up I see all the logs that containers are producing immediately. However, just after docker-compose up…
Zed
  • 111
  • 1
  • 2
1
vote
3 answers

Nginx on Docker cannot access bind mount

Summary: I'm trying to set up an Nginx container as part of a Docker stack. I want to use a bind mount to make a folder on my computer available to the container as /data/www, and use that as the root folder for Nginx to serve content from. The…
Máté Safranka
  • 121
  • 2
  • 6
1
vote
1 answer

Docker-compose with VPN and DNS not resolving properly

I made a deal with my son where in, if he built a fully-working, 3 way traffic light in minecraft, I would host him his own minecraft server so he and his friends could play anytime. He upheld his end of the bargain, so it's my turn. In order to…
1
vote
1 answer

gitlab-runner process in container can't find gitlab container when using docker-compose

Update: I did not resolve my problem but I know why it does not work. If you are using docker executor, when you launch a job, gitlab-runner binary will start a special container. This container is gitlab-runner-helper and will manage git, caches,…
Antoine
  • 133
  • 1
  • 5
1
vote
2 answers

docker-compose static ip does not work

I want to assign static ip to nginx, but it doesn't work at all. I have no idea where I'm doing it wrong. Could you please help? docker.compose.yml version: '3' services: web: container_name: nginx image: nginx:latest ports: -…
Spartan Troy
  • 111
  • 1
  • 2
1
vote
1 answer

container cannnot connect to service from another container

I have the following containers running: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b02d801f9aa3 …
ivanleoncz
  • 1,643
  • 6
  • 19
  • 32
1
vote
1 answer

Make trusted self-signed certificate not register as "self-signed" (i.e. trusted) on private network

I'm currently implementing a private Docker Registry server with nginx configured to forward https traffic securely to the running Docker Registry (i.e. docker-compose) instance on a private network (with DNS, DHCP configured). I have the entire…
Rolf
  • 11
  • 1
1
vote
0 answers

docker-compose up exited with code 1 because of few InnoDB errors

I have cat orthomcl/Dockerfile: FROM debian:stretch-backports RUN apt-get update && apt-get install -y --no-install-recommends \ wget \ cpanminus \ build-essential \ default-libmysqlclient-dev \ python \ …
user977828
  • 225
  • 1
  • 6
  • 15