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
3 votes
1 answer
27 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 ...
udance4ever's user avatar
-1 votes
0 answers
14 views

sh: can't open 'run.dev.sh': No such file or directory with declaring volumes in `docker-compose.yml`?

I face this exact error but Idk how to solve it. Idk if my windows firewall is blocking it & if it is, then how would i solve it. for context, i'm not using docker desktop. just docker with wsl2 ...
deadcoder0904's user avatar
0 votes
0 answers
18 views

Docker is too fast to start containers on reboot

I am running a compose file with restart: always on some services, with the following content and an .env file. version: "3.3" services: <some_name>: image: ${IMAGE} restart: ...
superAnnoyingUser's user avatar
0 votes
1 answer
17 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
0 votes
0 answers
6 views

How to force error when one container doesn't depend on another one?

I have the following config: services: backend: build: dockerfile: ../rishat_stripe_2402_django/django.Dockerfile context: ../rishat_stripe_2402_django env_file: - ....
Alexander Mirnyy's user avatar
0 votes
0 answers
12 views

Podman container created but not accessible for many minutes

I'm migrating our Jenkins instance to a podman-based setup. Everything looks fine, except that there's always a lag of around 5 minutes after docker-compose reports that the container has started. ...
dokaspar's user avatar
  • 101
1 vote
1 answer
178 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
72 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
16 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
1 vote
0 answers
47 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
  • 71
1 vote
1 answer
144 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
0 answers
21 views

How to connect to mariaDB hosted in AWS from a docker container?

I have setup a mariadb instance in AWS RDS. The DB is in a private VPC with no internet access. I can setup an EC2 VM and connect to the DB from DBeaver using SSH tunneling. I have an application ...
rams's user avatar
  • 101
0 votes
0 answers
19 views

Which Azure service is most suited for (simple) docker compose configurations?

I want to run the Eramba docker compose on Azure. I tried following a tutorial for Azure Container Instances, but the docker cli functions in this tutorial are retired. The configuration exists of 3 ...
Jasper's user avatar
  • 101
0 votes
0 answers
34 views

About user within image/container/host node docker

I am using docker / node:16 base image to deploy our node web projects. Yesterday, all of them went bust on one host machine, with the problem within the image (I assume). We publish images to our ...
Wish's user avatar
  • 101
0 votes
2 answers
98 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
194 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
230 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
65 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
80 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
64 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
35 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
1k 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
0 answers
83 views

Filebeat config for reading a data from a specific path

i'm trying to setup elk stack using docker compose. i'm using below file beat config filebeat.inputs: type: filestream id: default-filestream paths: ingest_data/*.log filebeat.autodiscover: ...
onebyi3's user avatar
0 votes
0 answers
154 views

Docker Network Interfaces Not Appearing in WSL Ubuntu or Windows CMD/Powershell

I am currently embroiled in a project that leverages tools such as Docker, docker-compose, and other networking components. I set up a docker-compose file with Docker networks of bridge type, but I'm ...
Mohamed's user avatar
0 votes
2 answers
29 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
0 votes
0 answers
48 views

Docker build reset file ownership after each layer built

I've noticed a new strange thing where file permissions reset while building a docker image. Consider the following Dockerfile: FROM ubuntu RUN mkdir -p /home/user && \ useradd -l -u ...
hudac's user avatar
  • 101
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
93 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
35 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
23 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
130 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
1k 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
628 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
1 vote
0 answers
52 views

Dockerfile & Docker compose for deploying a webpage with HTML and CSS at frontend and Nodejs and MongoDB at backend using Apache at EC2 [closed]

I need to deploy this application on EC2 instance using APACHE please suggest me docker compose and Docker file for this project in Github Project Backend is on Nodejs and Mongo Frontend is in HTML,...
Deepjyoti Bhattacharjee's user avatar
0 votes
1 answer
750 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
1 vote
0 answers
168 views

Docker Container in host mode - Reverse proxy

I have an issue with the docker network host mode. Basically I have a Node.js container running on a local network and I need to access it via a ssh tunnel from a server on the cloud. The server in ...
Bastien's user avatar
  • 11
1 vote
0 answers
455 views

Running Jenkins controller and agent with docker compose - is it possible?

The Jenkins controller and Jenkins agent are supposedly able to be run in Docker; Under Jenkins' official installation instructions, Docker is the first option listed: User Handbook -> Installing ...
KernelDeimos's user avatar
0 votes
1 answer
168 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
41 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
1 vote
0 answers
179 views

Rootless Network not linked to docker0 interface

I have installed docker in rootless. When I start my services with docker-compose. When I do docker inspect, the rootless containers are on the network 172.22.0.0/16 But, the host machine network ...
Steven Miller'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
636 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
0 answers
986 views

Access docker container through a fake domain name for better usability, with docker compose

I was developing a docker-compose setup for improving local development. My intention is that we could access some URL like https://api.testapi.local, instead of using http://localhost:8000. Is it ...
Fabricio Munhoz's user avatar
0 votes
0 answers
528 views

How to reboot an container which has stopped with an exit state (1)

Context I run a compose file application as follow: $ docker-compose --file docker-compose.yml up --detach --scale app=20 app When I watch their current state using docker-compose ps -a I can see ...
swiss_knight's user avatar
0 votes
1 answer
720 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
0 votes
0 answers
1k views

Docker Compose interaction between profiles and depends_on?

In the following docker-compose.yml, service "bar" depends on service "foo", but they are in different profiles. Now when I activate only profile "bar" but not profile &...
Konrad Höffner's user avatar
2 votes
1 answer
1k 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
2 3 4 5 6