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

Docker compose scale with different environment variable value

I want to achieve scaling of the container based on the array of values (like a matrix set of values used for creating containers). I can't do scaling with a single container in docker compose file: services: runner: image:…
0
votes
1 answer

Nginx configuration in OpenShift

I have been struggling with a solution to have nginx running, in OpenShift there is no use of root user during creation of the containers. Then, I was getting the following error: 2023/06/21 10:37:45 [emerg] 1#1: mkdir()…
John Barton
  • 103
  • 2
0
votes
0 answers

Using apt-get update in Dockerfile is not working

In my Mac, I'm running minikube, version minikube version: v1.24.0 commit: 76b94fb3c4e8ac5062daf70d60cf03ddcc0a741b with VirtualBox, with this command minikube start --vm-driver virtualbox…
Carabes
  • 101
  • 1
0
votes
1 answer

Bring website online with domain without adding the port

I come to you because currently I have a website that is hosted on my web server. But on this server I have several websites hosted on it. So to access it you have to put a port number. Until then it's normal. Each site has a domain name. What I…
0
votes
1 answer

Docker compose - flyway not connecting to mysql

I'm trying to dockerize a microservice built with Spring Boot that uses the MySQL database and Flyway. When I run the microservice through the IDE, the flyway manages to connect with MYSQL, but when I run the command sudo docker compose up there is…
0
votes
1 answer

How to forward (inside a container) requests from 0.0.0.0 to 127.0.0.1

Looking for a solution on how to forward the requests from 0.0.0.0:9222 --> 127.0.0.1:9222 inside a container I am using a docker container with google-chrome-stable installed for running visual testing. root@6bb8678b29f5:/# google-chrome-stable…
0
votes
0 answers

Best way to trigger host to restart a docker container from inside another docker container?

I have a docker container that manages all of the SSL certificates for my services with Letsencrypt. When the certificate for a certain service is renewed, a post-hook script copies the certificate and key to the folder where the SSL certificate and…
lriley
  • 9
  • 3
0
votes
0 answers

(111: Connection refused) while connecting to upstream nginx with docker

I am trying to dockerizing a angular universal app using nginx, and it's giving me really hard time. I have looked everywhere and haven't found a solution. Dockerfile FROM node:14-alpine AS builder WORKDIR /app COPY . . RUN npm i && npm run…
0
votes
1 answer

How do I set up Wireguard in Docker with lan access

I'm trying to set up a VPN server with wireguard. I have the following setup in docker compose: version: "3.1" services: wireguard: image: linuxserver/wireguard cap_add: - NET_ADMIN - SYS_MODULE environment: -…
Steinbitglis
  • 183
  • 1
  • 8
0
votes
1 answer

Docker compose gitea remote ssh connection refused

I have setup Gitea on an Ubuntu server using this docker-compose config: version: '3.9' services: db: image: docker.io/bitnami/postgresql:15 volumes: - 'db_data:/bitnami/postgresql' environment: - POSTGRESQL_DATABASE=gitea …
Alex Hope O'Connor
  • 113
  • 1
  • 2
  • 6
0
votes
0 answers

Optimzing Docker Builds with docker-compose.yml when using PostGres DB's, performance, etc

I just have a general about how best to build and manage DB servers when using Docker builds with docker-compose.yml. Historically, I've sometimes bound the Postgres DB's to a bound folder on the host FS. There are upsides and downsides to that it…
SScotti
  • 141
  • 6
0
votes
0 answers

Persist Prometheus data from a Docker Container

I'm running Prometheus and Grafana from docker-compose and basically it works. But I don't get my prometheus data to persist on my host machine. As soon as I switch my volume settings from --- version: "3.3" services: prometheus: image:…
0
votes
0 answers

Runging own Telgram bot based on PTB 13x and local Telegram bot API behind nginx

Try to use local Telegram bot API to take benefits of larger files for my bot serving and helping users in supergroup with files as described here Build stack with Telegram Bot API, nginx as reverse proxy and my bot works ok, based on docker-compose…
Topper
  • 101
  • 2
0
votes
0 answers

Nginx upstream block host not found

I'm running a nginx container where it maps to another backend container. When I tried adding upstream block in nginx.conf which is like upstream backend_servers { server backend:8000; } The error that is occuring is [emerg] 1#1: host not found…
0
votes
0 answers

Accessing docker-compose containers via ipv6 from the outside of the docker host

I have the following (simplified) docker(-compose) setup and would like access the nginx container from the laptop. A ping from the laptop to the docker-compose gateway (fd..2222.0.0.1/80) works fine but to fd..2222.0.0.2/80 doesnt work. I already…