Questions tagged [docker-compose]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

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 ...
Gustavo Cruz's user avatar
0 votes
1 answer
40 views

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 ...
Svenv's user avatar
  • 171
0 votes
0 answers
29 views

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 ...
lriley's user avatar
  • 9
0 votes
0 answers
17 views

(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 ...
M Safdar Ali Khan's user avatar
2 votes
1 answer
89 views

Ngnix Reverse Proxy Setup SSL For Localhost In Docker

Using below docker compose.yml I am creating 2 containers and a reverse proxy container.. version: '3' services: # SSGTM Tag Server Container tagging_server_container: image: gcr.io/cloud-...
Sajjad Hossain Sagor's user avatar
0 votes
1 answer
93 views

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: - ...
Steinbitglis's user avatar
0 votes
0 answers
59 views

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' ...
Alex Hope O'Connor's user avatar
0 votes
0 answers
13 views

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 ...
SScotti's user avatar
  • 141
0 votes
1 answer
175 views

Installing docker/compose-bin plugin on Google's Container Optimized OS

I am trying install the docker/compose-bin plugin on a Google Cloud VM with Container Optimized OS (https://hub.docker.com/r/docker/compose-bin/tags). Has anybody achieved this? I understand docker is ...
supercoco's user avatar
  • 121
0 votes
0 answers
102 views

Why does MySQL 5.7 inside a docker container always crash?

I have a MySQL 5.7 docker container that was provisioned via a docker-compose file, the file looks like this: version: '3' # Run command: docker compose --env-file .env.local up services: # ...
Budianto IP's user avatar
0 votes
0 answers
57 views

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:...
Sebastian Sommerfeld's user avatar
0 votes
0 answers
80 views

How to forward WSL2 8080 to Windows host's 8080?

I have: a Spring Boot application running on Windows on 8080 and a service running in the Docker container within the WSL2 Ubuntu, and I'm loking how to enable the Windows host's 8080 to this ...
imy's user avatar
  • 101
0 votes
0 answers
40 views

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 ...
Topper's user avatar
  • 101
0 votes
0 answers
645 views

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 ...
snowlash's user avatar
1 vote
1 answer
95 views

Multiple cors sites on Traefik

I'm using Traefik on my Ubuntu server. Cors works fine for one website but when I try to use it for two they seem to conflict. What is the correct syntax? This is what I have in my docker-compose file:...
Joe Gatt's user avatar
  • 113
-1 votes
1 answer
136 views

Incorrect IP address of docker container

I use RockyLinux and I have installed Docker for my services. My docker-compose.yml file looks similar like this: version: "3.9" services: service_a: container_name: service_a ...
user3364391's user avatar
0 votes
0 answers
95 views

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 ...
milkpirate's user avatar
0 votes
1 answer
142 views

How to pass server configuration to postgres docker via a compose file?

I am using Postgres docker 14.4. I want to pass a server configuration (let's say idle_session_timeout) to the postgres docker. The doc gives an example using docker run docker run -d --name test-db -...
tuk's user avatar
  • 333
0 votes
1 answer
230 views

Docker : Failed to download metadata for repo 'appstream'

I am using Docker. I am newbie in this tech, so please let me know if require any other info Want to install a remote host, docker-compose.yml version: '3.8' services: jenkins: container_name: ...
sparsh610's user avatar
  • 101
-1 votes
1 answer
89 views

Assigning subdomain to ECS via Docker Compose

I'm currently using Docker Compose AWS ECS to deploy a backend server. Currently the backend server is listening to port 80. I have a domain I own that has a dedicated hosted zone on Route 53. I'm ...
thank_you's user avatar
0 votes
1 answer
205 views

Move docker compose wordpress with local volume to new host with correct permission

I'm struggling to migrate / move my Docker Compoe project with Wordpress and Mysql to a new host. My docker-compoye.yaml is as follows: version: '3.1' services: wordpress: image: wordpress ...
mbecker's user avatar
  • 101
0 votes
0 answers
374 views

Nginx reverse proxy requires internal port to work when redirecting traffic to Docker host machine

I've been using a Linux host machine with several docker containers running with one of those as Nginx Proxy Manager (from now on: NPM), which is just Nginx with a friendly UI. NPM exposes ports 80 ...
DomingoSL's user avatar
  • 345
1 vote
0 answers
679 views

Why is a moby/buildkit:buildx-stable-1 getting created when I try to build leading to a container name conflict?

I have the following docker-compose... version: "3.8" services: proxy: container_name: proxy extra_hosts: - "host.docker.internal:host-gateway" build: ...
Jackie's user avatar
  • 141
0 votes
0 answers
206 views

Docker Compose + Ubuntu:22.04-Unable To Create cgroup...Read-only file system

I'm playing around with Docker Desktop(4.16.3) and Slurm. When I run slurmd, I get an error with the following complaint: common_cgroup_instantiate: unable to create cgroup '/sys/fs/cgroup/freezer/...
Black Dynamite's user avatar
0 votes
1 answer
96 views

How to check current host os in Docker compose?

For linux and airflow containers, we have to provide host user id to the container: "On Linux, the quick-start needs to know your host user id and needs to have group id set to 0. Otherwise the ...
Павел Иванов's user avatar
1 vote
2 answers
160 views

How do you get docker to work in amazon vpc? (ip assignment coordination)

Is there a way to block out a range of ips in the VPC? Alternatively is there a way to get docker (docker compose) to use dhcp to get ip addresses? If it does so will they be blocked from being ...
Roman A. Taycher's user avatar
-1 votes
1 answer
570 views

Port Forward with dockerized OpenVPN-Server

So I am a bit new to the VPN stuff and am currently getting a little desperate. For what I want to do. I have rented a little server somewhere (static IP, Domain and everything). Now I want to run ...
thorald_'s user avatar
0 votes
0 answers
174 views

Django deploy with Gunicorn, Nginx and Docker-Compose returns Server Error 500

I'm deploying a Django application on ubuntu server, where I have installed Nginx. The app is deployed using docker-compose and gunicorn. Here's my nginx configuration: upstream backend { server 0....
Paul Rock's user avatar
  • 101
0 votes
1 answer
289 views

Why can't traefik find the docker network it must use?

I am running a traefik in a container, together with other containers, most notably docker-socket-proxy so traefik can run as non-root. My compose works, but there is a warning message that tells me ...
gctwnl's user avatar
  • 161
0 votes
1 answer
134 views

How not to (almost) duplicate `Dockerfile` for "production" and "development" environments"?

I have a server app that is dockerised, but I cannot seem to pass a variable from any docker-compse.yaml's services to the Dockerfile as desired. Thus I couldn't find any another solution than what ...
djfm's user avatar
  • 195
1 vote
1 answer
245 views

How could I limit memory and cpu usage in Docker globally

I'm using Docker with Ubuntu in a development environment, but I noticed that docker can use all the resources of the host machine, is there any way I can limit this without having to configure each ...
Ediano Silva Santos's user avatar
0 votes
1 answer
120 views

After establishing WebSocket tunnel, does NGINX continue to 'be in the loop'?

I have a WebSocket server-side application fronted by an Nginx reverse proxy and all is working great. The WS app runs in a container as does Nginx, and both then work together as a service. Now I'm ...
mmuurr's user avatar
  • 125
0 votes
0 answers
380 views

Nginx proxy on docker exited with code 0. How can I repair it?

I created a nginx and letenscrypt container with the guide: Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation. My docker-compose.yml looks like: version: "3.7" services: ...
wleng's user avatar
  • 1
0 votes
0 answers
254 views

Networking issues when running multiple Docker containers

I am currently getting familiar with Docker and one issue I have is launching several Docker containers on the same host machine. If I run 32 or less containers, everything works fine. However, if I ...
stacktomatojuiceleaf's user avatar
1 vote
1 answer
122 views

Postfix "Name service error for name=dovecot" in docker-compose

Context My docker-compose --version is 2.13.0 I have created a reproducer in https://github.com/Losmoges/postfix-dovecot-lmtp-reproducer My trial has three docker services in the compose file: postfix,...
Losmoges's user avatar
0 votes
1 answer
31 views

VSCode-Docker Not Invoking "CMD"

TL;DR Image built by VSCode only executes the CMD command when I press the Run button in the Docker Desktop UI. Hello Folks, I'm playing around with a Drools image along with Docker Desktop and VSCode....
Black Dynamite's user avatar
0 votes
0 answers
183 views

Unable to connect to the database

I am using docker-compose to set up umami.But it seems that umami is not up. I have checked log file umami. Here it is what looks like. yarn run v1.22.19 $ npm-run-all check-db update-tracker start-...
sudojarvis's user avatar
0 votes
1 answer
2k views

no live upstreams while connecting to upstream

I am trying to set up reverse proxy using nginx. The thing is i want to redirect to umami login page when go to localhost. But i am getting 502 bad gateway.I am not sure i have correctly configured ...
sudojarvis's user avatar
0 votes
1 answer
1k views

docker networking: browser and curl hang when connecting to server on localhost

I have several web apps running in docker on a ubuntu host. Each app is listening on a different port. When inside any container in the docker network, I can connect and receive data from the service, ...
thayne's user avatar
  • 109
1 vote
1 answer
127 views

How do I open ports on a docker image?

I am using a docker file as shown here, in my project : https://github.com/jamiepratt/embedded-repl/blob/master/docker-compose.yml I start the container with: docker-compose up app But cannot connect ...
jamiep's user avatar
  • 11
0 votes
0 answers
329 views

nginx not serving static files after adding app to docker-compose

I have an app (blog) made with Python and Django. Using docker-compose I've managed to deploy it to a Digital Ocean droplet. The Docker stack includes a Postgres db nginx, nginx-proxy and the nginx-...
guillermo_dangelo's user avatar
0 votes
1 answer
2k views

Setup Apache Docker container to keep running after executing php shell CMD

I'm trying to run a Docker container based on: PHP 8.1 Apache 2.4 MariaDB (latest official docker image) Dockerfile: FROM php:8.1-apache WORKDIR /var/www/html/ RUN pecl install xdebug \ &&...
DevelJoe's user avatar
  • 155
0 votes
1 answer
2k views

Getting a SQLSTATE[HY000] [2002] Connection refused in PHP Apache Docker container using mariadb, if connected via Dockerfile's CMD (PHP CLI works)

I'm trying to run a Docker container based on: PHP 8.1 Apache 2.4 MariaDB (latest official docker image) It all starts up without any issue; but I'm unable to connect with the Docker Container's DB ...
DevelJoe's user avatar
  • 155
1 vote
1 answer
908 views

Docker Stack Deploy doesn't resolve environment variables with default value like Docker Compose does

I have the following example files docker-compose.yml version: '3' services: web: image: webapp:${VARIABLE_A:-${VARIABLE_B}} env.conf VARIABLE_B=123 VARIABLE_A is not set on purpose so it ...
RabidTunes's user avatar
0 votes
0 answers
253 views

Matrix, Synapse server can't be reached

I set up a matrix server and everything seems to be happy, but I can't connect to the server. Calling it with: matrix.myDomain.de results in ERR_TIMED_OUT Calling it with: matrix.myDomain.de:8008 ...
Voxel's user avatar
  • 1
1 vote
1 answer
233 views

Get real client remote ip in docker-swarm httpd proxy?

I'm running a httpd apache2 proxy in docker swarm mode with docker stack deploy. Problem: when I access mymachine:80, the access.log only shows the remote ip of the docker ingress swarm network, like ...
membersound's user avatar
0 votes
0 answers
699 views

How to use environment variable in apache config condition?

In my apache config file I'm trying to set a virtual host on port 443 IF my environment variable is not dev I have a docker container running via docker-compose which specifies the environment ...
David's user avatar
  • 11
0 votes
1 answer
2k views

How to properly setup composer within PHP Apache Docker Container

Content of my Dockerfile: FROM php:8.1-apache WORKDIR /var/www/html/ RUN pecl install xdebug \ && docker-php-ext-enable xdebug \ && a2enmod rewrite \ && docker-...
DevelJoe's user avatar
  • 155
0 votes
0 answers
211 views

Dockerized wordpress behind Nginx proxy pass on host redirects to / in admin panel after logging in

I am attempting to run Wordpress on Docker on my VPS. Since I run some additional web apps, I have setup Nginx proxy pass to route requests to each of them. As such I have setup the same for this ...
Desmond27's user avatar
2 votes
1 answer
4k views

Can't get Apache rewrite to work on Docker PHP-Apache container

I've followed suit to quite some instructions, tutorials, and also questions in this forum, but I can still not get this working. I've setup a REST API using a PHP Apache Docker container, and need to ...
DevelJoe's user avatar
  • 155

1
2 3 4 5
12