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
2
votes
0 answers

Docker compose project in Azure with multiple yaml files?

I am currently constructing a docker project that is to be quite generic in question, to work with several of our sites. The way I have solved that is to have multiple docker-compose yaml files, one main file containing all common configuration and…
2
votes
1 answer

How can I bypass mailhog in Docker4Drupal?

I am using Docker4drupal, a preconfigured set of docker containers. One of the containers is the mailhog tool. Docker4drupal is configured to use mailhog as email sender so it captures all mail sent for developing purposes. This is great but I would…
Edu
  • 23
  • 2
2
votes
0 answers

ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

My environment: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.6 (Maipo) # uname -a Linux X.Y.Z 3.10.0-957.12.1.el7.x86_64 #1 SMP Wed Mar 20 11:34:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux # rpm -qa | grep…
alexus
  • 13,112
  • 32
  • 117
  • 174
2
votes
1 answer

docker-compose build --no-cache not working

I made some updates on a Dockerfile for one of the services, but the changes are not reflecting, when running docker-compose build, not even with --no-cache option. I added two two parameter before running pip install -f requirements.txt, but they…
ivanleoncz
  • 1,643
  • 6
  • 19
  • 32
2
votes
0 answers

What is the difference between creating a volume in docker-compose and in docker file?

I discovered docker-compose a few days ago. I saw that it has a neat way to create volumes for serveral containers without any problems. However, as far as I know it is possible to do the same in the respective docker files which produced each…
ChiPlusPlus
  • 123
  • 5
2
votes
0 answers

Docker errors - Nginx keeps looking for files under /etc/nginx/html

I have a seperate docker container setup with Lesencrypt (using nginx, nginx-gen, nginx-letsencrypt) The Nginx and app containers are working fine but I see errors in Docker logs for Nginx. I have the volumes for nginx docker at: -…
2
votes
2 answers

Cannot block port 21 and 5222 via iptables (due to docker?)

I'm trying to get just port 80, 443 and SSH open on my Ubuntu VM. I'm running Docker which I think is what is causing port 21 and 5222 to be visible. telnet HOST 21 Trying HOST... Connected to HOST. Escape character is '^]'. sudo iptables --list…
twiz911
  • 71
  • 2
2
votes
2 answers

Prometheus container connection refused

I have prometheus , nginx-vts , php and nginx-vts-exporter all in separated containers i'm trying to get metrics to prometheus from the exporter ,, it keeps telling me Get http://127.0.0.1:9913/metrics: dial tcp 127.0.0.1:9913: connect:…
Tyr_90
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

Serve Django Media Files via Nginx (Django/React/Nginx/Docker-Compose)

Context I have a single page web app using the following stack: React for the frontend Django for the backend Nginx for the webserver The web application is dockerized using docker-compose. My React app, fetches data from the Django server…
Teddy
  • 121
  • 1
  • 4
2
votes
1 answer

TCP connections between docker containers timeout after ~10000 connections

I have 2 containers defined in a docker-compose.yml file, and am using them to run some rspec tests in a CI pipeline - the first container executes the tests, the second is an nginx container that is configured to perform redirects for many…
aweraw
  • 73
  • 1
  • 8
2
votes
0 answers

Not able to reach container running in a localhost docker swarm cluster

If that's interesting: OS: WIN10 (cygwin), code written in Java. I am using hyperv VMs as stated in this guide: this I'd expect to reach the service in front of the container, which is running on port 80, using myvm1IP:80 (browser ir curl). Somehow…
elp
  • 167
  • 1
  • 1
  • 11
2
votes
1 answer

How to restrict external access to ports exposed by Docker containers, while still allowing links to work?

I have a couple services running on a machine in docker containers that need to be available to a specific IP address, and need to be available to containers with links (as defined in a docker-compose file). I've tried these commands, but this seems…
2
votes
1 answer

AWX docker-compose stop not working

I'm pretty new to docker-compose and I can't seem to make this work. I have been following this guide for installing AWX and has been successful so far. But when trying to stop everything using docker-compose as instructed in the document, I am…
Lester
  • 597
  • 4
  • 16
2
votes
3 answers

Docker: how to sync date between a CentOs host and a Debian container?

I have a CentOs host running a docker Debian container. The container has the wrong localtime and timezone: how can I synchronize it with the host date? I'm trying with mounting volumes on the docker-compose with /etc/localtime but it doesn't…
Alessandro C
  • 121
  • 1
  • 3
2
votes
0 answers

running mongodb with ssl and docker secrets docker-compose sample

I'm new to docker. The developers on my work create a docker-compose with mongodb and asp.net core application setup, although its funcional, they didin't setup SSL for the application, mongodb isn't configured with ssl either, and all login and…
LCR
  • 23
  • 5