Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [docker-compose]

Docker-compose is a tool that is able to run multiple container by issuing `docker-compose up`. One of the features is that DNS mappings could be made between the containers so that they can find each other.

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

Docker Compose: dynamically change the image architecture based on running host machine

quick question: is it possible to dynamically change the image's arch based on the host's machine instead of create 2 separate docker compose file? Currently I have 2 files: For arm64 (osx) services: ...
Jaeyson Anthony Y.'s user avatar
0 votes
0 answers
9 views

permissions of the file system inside the docker is messed up, how to upgrade docker-compose version

Recently observed that file system inside docker container (without any changes) is messed up and this is impacting many as per: https://github.com/docker-library/openjdk/issues/465 There are such ...
Mihir's user avatar
  • 101
1 vote
1 answer
19 views

How did docker compose down update the running image?

I'm running an application with docker compose. version: '3.8' services: php: build: context: . ports: - "[::1]:${BACKEND_PORT}:80" frontend: build: context:...
AndreKR's user avatar
  • 140
0 votes
0 answers
11 views

Best practice to share host NAT interface to Docker containers

Our bare-metal virtual machines are behind a NAT for firewall and security, so basically each machine has a 192.168.x.x interface and connects to the internet via the gateway. On machine Web we run ...
Shayan's user avatar
  • 101
1 vote
1 answer
65 views

Is it possible to seed data as part of docker compose up -d

I have the following docker-compose.yml file: version: "3.7" services: dc-patients: build: context: . dockerfile: ./Dockerfile labels: service: "...
J86's user avatar
  • 239
0 votes
2 answers
47 views

Ubuntu container not running in detached mode

I tried running my containers in detached mode and noticed some issues. When I ran the command docker container run -d nginx, the image of nginx got pulled, the container got created, and kept running ...
Jilson's user avatar
  • 11
1 vote
0 answers
38 views

How to deploy dockerized MERN stack app on AWS EC2 instance?

I dockerized my MERN stack app (Next js, node js, MongoDB) and tried to deploy it on the AWS EC2 instance. When I try to access my backend on port 5000 via AWS Public IP, it works fine but when I try ...
Rana Faraz's user avatar
3 votes
1 answer
62 views

What’s the docker compose equivalent of my docker command?

I’ve been using the command line for docker for 2 weeks and just learned how to use docker compose yesterday using the excellent documentation I found at Jellyfin. I got a Jellyfin container up and ...
uspam4ever's user avatar
0 votes
1 answer
23 views

Should I use monorepo for deploying projects?

I'm a newbie into devops tasks. I am working on a project in which I have the following parts: One frontend which provides info about the project (1), one frontend that is the actual web application (...
Javier's user avatar
  • 1
1 vote
1 answer
456 views

How to configurate keycloak healthcheck in docker compose?

I need my BFF service to wait for keycloak to be fully launched using condition service_health, and then start its launch. I can't set up a health check for keycloak. When searching for an answer, I ...
The Prototype's user avatar
0 votes
1 answer
225 views

Postgresql container automatically dropping database after some time in Docker Compose setup

I have a Docker Compose setup for a PostgreSQL container like below: version: '3' services: #PostgreSQL Service um-db: image: postgres:15 container_name: um-db tty: true ports: ...
Sandeep Dhakal's user avatar
0 votes
1 answer
20 views

Why Azure App Service auto serve my site on port 443?

Project Setup My React app image is stored on Azure Container Registry (ACR), with a Dockerfile as below, FROM node:16.19.1-alpine WORKDIR /frontend COPY ./frontend/package*.json . RUN npm install ...
Bugman Huang's user avatar
0 votes
0 answers
74 views

Base image can not be fetched within Dockerfile build but can be fetched from shell

Client: Docker Engine - Community Version: 24.0.6 OS: RHEL8 I want to build an existing docker compose project on a new VM. The docker compose project consists of two containers db and web. I have ...
Michael's user avatar
  • 69
1 vote
1 answer
251 views

How do I "Dockerise" a client/server setup using socket.io?

Forgive the vague question title, I'm a complete beginner and I lack the terminology to pose my question more specifically. I've been developing a simple application that consists of a game server (...
WalrusGumboot's user avatar
0 votes
2 answers
111 views

Dockerhub says Hello World causes CVE-2023-5363 and CVE-2023-5678

Dockerhub says I have the vulnerabilities: CVE-2023-5363 and CVE-2023-5678, which is part of the openssl package. See this image: Does anyone know how I can resolve this issue? I've simplified my ...
learningtech's user avatar
0 votes
0 answers
214 views

Alternatives to 'Docker Compose's integration for ECS and ACI will be retired in November 2023'

We are currently using 'docker compose' to deploy our applications on ECS, and during its usage, we have noticed the following notice: 'Docker Compose's integration for ECS and ACI will be retired in ...
Xeven's user avatar
  • 1
0 votes
2 answers
577 views

Mapping error in Docker Compose

I'm still a newbie in the Docker area. I'm just getting confused about this from this Docker-run command: docker run -d --name fritzbox_smarthome_exporter -p 9103:9103 \ -v $(pwd)/boxcert.cer:/...
VaraBiker's user avatar
0 votes
0 answers
10 views

Ensuring Ubuntu docker image will not kill the process under heavy load

We run our app as a daemon (or some times with nohup command) so that Ubuntu will not kill this process under heavy processor and memory load. However, we want to dockerize (on Ubuntu 20.04 docker ...
RajS's user avatar
  • 141
2 votes
1 answer
72 views

What is the syntax error in my docker compose file?

I copied authoritative content at https://github.com/Kong/docker-kong/blob/master/compose/docker-compose.yml version: '3.9' x-kong-config: &kong-env KONG_DATABASE: ${KONG_DATABASE:-off} ...
Vy Do's user avatar
  • 165
0 votes
0 answers
105 views

Can't get connected to mysql db using sequelize and docker

I am Trying to connect to Mysql database using docker-compose in node.js ConnectionRefusedError [SequelizeConnectionRefusedError]: connect ECONNREFUSED 192.168.32.2:3306 here is how my docker-...
Luka Akhalbedashvili's user avatar
0 votes
1 answer
82 views

Why Elasticsearch is terminated if I bind mount a volume?

In my docker-compose I setup an elasticsearch container: version: "3.3" services: elasticsearch: build: context: . dockerfile: ./dockerfiles/DockerfileElasticSearch ...
Dimitrios Desyllas's user avatar
0 votes
0 answers
62 views

Best approach for deploying multiple (Docker) container web app

I have a fairly simple Django web app which I want to deploy somewhere. I am keen to automate and simplify as much as possible and for that reason I am hoping to avoid having to deploy directly to one ...
Auspice's user avatar
  • 181
0 votes
1 answer
2k views

Setup keycloak with mysql via docker compose

I've been trying to get keycloak running for a bit now. I had it going using the legacy tag but it seems like bad practice to get started with a legacy version. So I wanted to get the most recent ...
Bas Visscher's user avatar
0 votes
2 answers
32 views

How can I use two different docker container on the production server (after pushing to DockerHub)?

I have the docker-compose file with two containers. "nginx" container depends on "demo" (it's python django backend). version: '3.9' volumes: static: services: demo: ...
Levan Lomidze's user avatar
1 vote
1 answer
1k views

Specify container IP as extra_hosts in Docker Compose

I have a compose.yaml serving WordPress with a Traefik reverse proxy. The https port 443 loopback for the WordPress container fails by default because the WordPress container only listens on http port ...
Jeff Lockhart's user avatar
0 votes
0 answers
107 views

WordPress in docker compose slow first response

In a VPS I have created a structure using docker where there is an NGINX Proxy Manager to handle the incoming requests and with a docker-compose.yaml I have 5-6 simple sites (no eCommerce) running. My ...
Argiris's user avatar
0 votes
0 answers
39 views

Share docker-compose volume definition but changing base path

I need to cite the same volume mount structures among different container. Use case: two different stage of an app, same dir structure, different code base. I have a long volumes definition that is ...
checco94pd's user avatar
0 votes
0 answers
27 views

Run Docker container with user who started it

I have two users on host machine usera, userb. I have added these users to the Dockerfile as below. FROM ubuntu:latest ENV DEBIAN_FRONTEND=noninteractive \ TERM=xterm RUN groupadd -g 1111 ...
noonenine's user avatar
0 votes
0 answers
142 views

Angular universal with docker giving bad gateway

I am trying to dockerizing a angular universal app using nginx, and it's giving me really hard time. It keeps saying 502 bad gateway and I am unable to wrap my head around it. This is my Dockerfile ...
M Safdar Ali Khan's user avatar
2 votes
2 answers
2k views

How do I get real client IP inside docker container for logging to the database

I have a following docker compose file: version: "3.8" services: postgres: image: postgres:11 volumes: - myapp_postgres_volume:/var/lib/postgresql/data ...
RajS's user avatar
  • 141
0 votes
1 answer
1k views

Docker push getting error EOF to private repository

I'm trying to push images to repo private, but it's getting error below. Before, it was working, but idk what happened... PS C:\Users\user\aplication> docker push registry.apprepo.app/app:1.22.3 ...
Limup's user avatar
  • 1
0 votes
0 answers
734 views

Unsecure container registry declaration in Gitlab CI/CD

I have the following .gitlab-ci.yml file : stages: - publish - deploy variables: TAG_LATEST: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:latest TAG_COMMIT: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:$...
baks's user avatar
  • 1
0 votes
1 answer
875 views

Best dockerized VPN clients?

I'm trying to set up a VPN client in a Docker service with Docker Compose, but I'm running into some issues. ExpressVPN: I tried this ExpressVPN container, but it just keeps restarting constantly. ...
jerdub1993's user avatar
0 votes
1 answer
174 views

Setting the network using docker-compose

Do you think these commands are valid? wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml NETWORK=testnet docker-compose up The first command downloads ...
J.O.C's user avatar
  • 11
0 votes
1 answer
46 views

how to decrease the docker image layers latency during the image build step?

I am following the Microsoft document to create a custom image of vsts-agent on top of ubuntu and install the required capabilities. Since our environment is not having internet enabled, we used ...
Vowneee's user avatar
  • 101
0 votes
1 answer
1k views

How can I map a domain to docker containers?

I have a Redhat Linux server. In that, I installed docker and run docker containers in it. Now I want to map a domain to docker containers by using Nginx. What is the correct process to map domains by ...
Rajesh Gandhavarapu's user avatar
0 votes
1 answer
2k views

Port forwarding rules with Traefik and Docker.Compose

I'm trying to use Traefik to route to a number of services all running using docker-compose. What I'd like to do is access each service with a prefix, eg: 10.20.30.40/u10/xyz and 10.20.30.40/a10/abc ...
user3166273's user avatar
2 votes
1 answer
655 views

Docker Compose: How do you build an image while running another container?

I'm trying to build a Nuxt 3 application using docker compose. However, I'm having trouble with docker compose and dockerfile configuration. Context To give background on the project that I'm working ...
Zerro97's user avatar
  • 21
0 votes
1 answer
863 views

Docker port mapping across several IPs on same NIC results in error

I have docker stack running on a Raspberry Pi with docker-compose. It’s been going nicely for about a year now, but now I want to bring it to the next level. The issue is, the stack contains a few ...
Louis Nichols's user avatar
2 votes
1 answer
2k views

How to link containers in a "icc=false" bridge?

I'd like to connect several services with a reverse proxy. But the services can't communicate with each others. I'm using a compose file for each service. I'm trying to use the same external bridge (...
Guix555's user avatar
  • 23
1 vote
1 answer
935 views

Cloudformation template with EC2 using docker compose [closed]

I'm relatively new to Cloudformation, and had a few questions about my template and best practices. I'm facing a few hurdles, and there is a lot of information out there, it's a bit overwhelming, so ...
kvnam's user avatar
  • 121
0 votes
1 answer
2k views

Is it possible to create multiple tags out from docker-compose?

While creating a CI/CD via Azure Devops, my goal is to push two tags to the artifactory: latest build version (For example 1.0.X) My docker-compose looks like: version: '3.4' services: ...
Shahar Shokrani's user avatar
1 vote
1 answer
2k views

Why is my docker composer volume not working?

My volume isn't being created with the containers, this volume binds with the host, every time I try to attempt to run it or go to an online validator for yaml, it shows the correct validation on the ...
user36023's user avatar
0 votes
2 answers
737 views

Arguments in docker_compose.yml throwing error, but not with docker run

I am in some desperate help. I am atempting to translate this docker run command: docker run -d -p 5434:5432 --name postgres-2 livingdocs/postgres:14.4 standby -d "host=host.docker.internal port=...
Ash's user avatar
  • 101
1 vote
1 answer
3k views

bind mount from host not appearing in docker container when using compose

I have a bind mount at /home/quant/mounted_folder with a fstab like this: /mnt/d/some_folder /home/quant/mounted_folder none bind I can confirm that the folder mounts correctly on the host: DESKTOP-...
quant's user avatar
  • 155
2 votes
1 answer
1k views

How to don't start entrypoint command on "docker-compose up"?

I have multiple Docker containers in a project and I use docker-compose up -d to start containers. This is my docker-compose.yml file: version: "3" services: httpd: image: 'nginx:...
Ferenc Bablena's user avatar
0 votes
1 answer
6k views

How can I run apt-get update and apt-get upgrade commands automatically?

I have a docker container where I run a few commands as a root user each time it is created from an image. Is it possible to automate running these commands as a root administrator user each time my ...
Taras's user avatar
  • 105
2 votes
0 answers
874 views

How to colorize kubernetes logs?

It's easy enough to enable colorful logs on docker containers (by setting TERM=xterm-256color and running with tty: True). Still, I'm not getting any color when I run kubectl logs/stern on the ...
Jesse's user avatar
  • 121
1 vote
2 answers
7k views

How to connect from Docker container to the host?

My problem is that im trying to connect to a Docker host(Im running on Ubuntu) from a container. Ive tried several solutions including adding extra_hosts: host.docker.internal:host-gateway, but still ...
Joel's user avatar
  • 23
2 votes
0 answers
331 views

Run commands on docker container and sync automatically with host

I Dockerkized a MENN(Nextjs) stack App, now everything works fine. I run into issues when i need to install npm packages. let me first show you the structure src/server/Dockerfile FROM node:14-alpine ...
uneeb meer's user avatar

1
2 3 4 5