Skip to main content

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
0 answers
22 views

Issue with Accessing FastAPI Microservice via Nginx in Docker Setup

I'm working on a Dockerized application that consists of a FastAPI backend (Microservice 1) and an Nginx server (Microservice 2) which serves as a reverse proxy and also serves static files. ...
Peyton Molino's user avatar
1 vote
1 answer
26 views

Issue with Removing Unhealthy or Healthy Django + Daphne Containers in Docker Swarm

I'm encountering an issue with Docker Swarm's auto-healing properties while using Django with Daphne. Typically, Docker Swarm should automatically heal containers, even if they become unhealthy. ...
playwithcode's user avatar
0 votes
0 answers
17 views

docker containers unable to access vfat mount

I am bringing up a media server that reads media files from a mounted usb drive. The docker containers fail to write / change permissions of the files in the folders. I have a USB drive mounted with ...
CodeBlooded's user avatar
0 votes
0 answers
39 views

How does tailscale serve up localhost to other devices?

I'm under the impression that with a docker compose like services: exl2: image: exl2 ports: - "5001:5000" # EXUI - "5002:8000" # JL ... and no auth, I'm ...
R. Z's user avatar
  • 1
1 vote
1 answer
64 views

how to deploy a docker compose project in gitlab CI/CD

New to the Devop world so my terminology may be limited or incorrect. I have a self-hosted gitlab server. I had a "hello world" container project that spun up a "hello world" ...
Paul's user avatar
  • 11
0 votes
1 answer
19 views

Advice on tooling for development environment

I am working with a set of microservices and a database that are currently being set up by developers on Mac, Linux, and Windows workstations each with their own idiosyncrasies. The production ...
rbz732's user avatar
  • 1
1 vote
1 answer
15 views

Launching compose file from compose file

Let's say I have system A started by a compose file A_compose, let's say I want to start system A from compose file B which also does other stuff. Can I execute a compose file in another directory ...
maxical's user avatar
  • 113
0 votes
0 answers
37 views

What is the proper way to remove a locally bind-mounted volume on the host machine created by Docker Compose?

Problem I believe Docker Compose should be able to remove all volumes it creates because it seems easier and safer to do so. However, locally bind-mounted volumes on the host machine created by Docker ...
Hyunduk Shin's user avatar
2 votes
1 answer
61 views

Best Way to Call a Service Running in a Docker Container from another Docker Container in the Same EC2 Instance?

Context I hope the following diagram makes it clear, ask if you still need any answer. Basically, the cronjob itself (a container) will run every hour, that needs to use a long running redis service. ...
Della's user avatar
  • 133
1 vote
0 answers
1k views

Docker: error while creating mount source path

I am new to Docker. I am trying to run a container on MacOS. However, when I run: docker compose up -d --build I get the following error: Error response from daemon: error while creating mount source ...
mcheong246's user avatar
0 votes
1 answer
192 views

How to work with Docker Compose secrets securely

I hope you are well. I have some questions about Docker secrets: How can I work with secrets securely using Docker Compose, given that their content is exposed in /run/secrets and can be easily ...
user981's user avatar
1 vote
1 answer
145 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's user avatar
  • 113
0 votes
0 answers
13 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
2 votes
1 answer
138 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
  • 150
0 votes
0 answers
24 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
2 votes
1 answer
297 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
  • 259
0 votes
2 answers
261 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
2 votes
0 answers
93 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
4 votes
1 answer
191 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
0 votes
1 answer
77 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
2 votes
1 answer
1k 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
510 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
81 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
117 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
2 votes
1 answer
537 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 (...
simeondermaats's user avatar
0 votes
2 answers
134 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
238 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
1k 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
16 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
  • 151
2 votes
1 answer
112 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
  • 175
0 votes
0 answers
134 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
130 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
150 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
1 vote
1 answer
3k 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
40 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
2k 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
3 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
  • 151
0 votes
1 answer
2k 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
915 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
1k 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
188 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
52 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
2 answers
2k 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
3 answers
701 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
1k 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
1k 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

1
2 3 4 5 6