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.

529 questions
1
vote
0 answers

NGINX (111: Connection refused) error while connecting to upstream

I am setting up a configuration for NGINX but I am constantly getting the following error: 8#8: *698 connect() failed (111: Connection refused) while connecting to upstream, client: , server: , request: "GET…
1
vote
1 answer

How to allow a Docker container to bind a privileged port as another user?

I have a docker-compose.yaml file where I override the user that is used to run the container process using the user directive: version: "3.3" services: front: image: "ghcr.io/hexil-org/hexer-front:latest" restart:…
Xxmarijnw
  • 13
  • 3
1
vote
0 answers

Docker compose permission denied when PHP-FPM trying to create directory

I have this docker-compose I'm experimenting with. Im using fastCGI from Nginx to run the script. The docker-compose.yml: version: "3" services: psqldb: build: context: . dockerfile: docker/psql/Dockerfile args: …
1
vote
1 answer

docker group gets dropped from 'groups' after some time, and with it, my user's membership

I have a fresh installation of Linux Mint 22 (Vanessa) and installed docker with $ sudo apt install docker-compose $ docker -v Docker version 20.10.12, build 20.10.12-0ubuntu4 $ sudo systemctl start docker $ sudo systemctl enable docker $…
1
vote
0 answers

redis sentinels with docker-compose

so I have this kind of docker-compose version: '3.8' x-base: &base image: redis:latest x-base-sen: &base-sen image: redis:latest command: redis-sentinel /sentinel/sentinel.conf --protected-mode no services: redis1: <<: *base …
scaryhamid
  • 33
  • 3
1
vote
1 answer

connect() failed (111: Connection refused) while connecting to upstream with static website

My goal is to have 2 docker containers: nginx container (based on nginx:latest) to work as reverse proxy container with static website (based on nginx:alpine) Later I will add 1+ .net core backend services (not important for now). Currently when I…
Goran
  • 113
  • 1
  • 3
1
vote
0 answers

Nginx connection refused

I'm using docker containers to host a web app. I have three main containers: MySQL, flask and Nginx. The first two work as expected and the latter seems to be working fine as no error is displayed in the docker-compose startup. Nginx container…
1
vote
0 answers

How to setup a VPN server as the only way to access Docker containers on a Linux VPS?

I'm running a container with docker-compose on a Linux VPS (Ubuntu 20.04). I want the container to be accessible only via a VPN (ie: the container ports are not exposed on the host to the Internet and the container only accepts traffic from…
mettjus
  • 111
  • 3
1
vote
0 answers

docker-compose `restart: always` randomly not working

I administer a few Debian servers with Docker CE installed and docker-compose orchestrating several services (roughly 20 containers per machine).. Every single service is configured with restart: always in docker-compose. However, there are random…
adamsfamily
  • 245
  • 2
  • 9
1
vote
2 answers

Docker network timeouts when using bridge

I'm running on a dedicated server ​with Ubuntu version 20.04.3 LTS (kernel 5.4.0-96-generic) and Docker 20.10.7, build 20.10.7-0ubuntu5~20.04.2. The system is a fresh install. I have a Dockerfile for one of my services, which pulls some libraries…
Twometer
  • 91
  • 1
  • 8
1
vote
2 answers

How to setup persistent networked docker volumes?

I'm looking for an option for persistent docker storage away from the server it's running on. I know I can mount a CIFS share using a named volume and the local storage driver but these volumes just seem to be bind mounts and aren't managed by…
Sam Foley
  • 66
  • 1
  • 4
1
vote
0 answers

How to disable upstream buffering Nginx + Docker + Gunicorn?

I'm trying to use Nginx as proxy server between client and Gunicorn. Nginx, Gunicorn (Django) are Docker's containers. Problem is I can't disable buffering of upstream when I send large file from Client to Django App. TTFB time is quite small, thus…
Vokson
  • 11
  • 1
1
vote
0 answers

Docker Nginx returns 404 for proxy_pass endpoint

On a separate PC (which has the locally accessible only IP 192.168.1.148), I have 3 containers: docker_compose_ui, docker_compose_web_console & nginx Two of the containers are listening on ports but have not been forwarded to the…
Thermatix
  • 113
  • 4
1
vote
0 answers

Is it possible to not buffer docker compose output when a health check is used?

Re-introduction of health checks with depends_on in docker compose is amazing. Seriously was tired of writing health checks into every downstream container, especially things like a database initialization container. That said, it seems as soon as…
DrTeeth
  • 155
  • 8
1
vote
1 answer

How to make a custom docker image can define the ENV variable

I've created a custom homemade docker image containing the vhosts configuration, how can I define variables like ServerName, DocumentRoot in an ENV when running the container. Thanks, really appreciate to all answers
YonzLeon
  • 168
  • 5