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
2 answers
40 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 ...
John's user avatar
  • 131
-1 votes
0 answers
11 views

Clarification on DevOps Exam Task - Compiling 3CS-NGINX, NodeJS App, and Docker Compose

I recently took a DevOps exam for a company and received feedback that I did not understand the question properly. I was given the following tasks: Task 1 - Compiling 3CS-NGINX: Clone the Github ...
Scare's user avatar
  • 1
-1 votes
0 answers
11 views

Basic Microservice architecture

New to DevOps and Microservices here is the scenario I am trying to acheive I need a set of docker containers for my Laravel app for my vue app that communicates with laraLaravelvel through Rest ...
Ashkar A.Rahman's user avatar
0 votes
0 answers
83 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
40 views

Mapping-Fehler im 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
7 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
31 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
  • 151
0 votes
0 answers
24 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
24 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
19 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
328 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
32 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
56 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
27 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
42 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
0 votes
1 answer
652 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
48 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
31 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
18 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
99 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
1 answer
784 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
955 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
434 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
43 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
0 answers
217 views

docker-compose.yml - Inheritance of Services and Environment Variables

What I know There is a extends keyword services: base: image: image01 environment: BASE_VAR="Something" service01: extends: service: base There are ...
Pixelbog's user avatar
  • 101
0 votes
1 answer
512 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
0 answers
243 views

502 bad gateway with Nginx, Colima, Docker on macos for port forwarding of 443 and 80

I need to redirect port 443 and 80 to port 3000 of localhost using nginx on docker-compose, docker and colima on macos but it throws 502 bad gateway. This is happening on macos and on linux machine ...
Ako's user avatar
  • 1
1 vote
0 answers
162 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
0 votes
0 answers
398 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
135 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
34 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
0 answers
79 views

Create docker container with link to hardware device that doesn't exist yet

My use case: I use a containerized octoprint instance to drive a 3dprinter. The problem I'm running into is that if the printer(usb) isn't connected during the boot process of the container, then it ...
BugSquanch's user avatar
0 votes
0 answers
43 views

Deploying files contains in a git repo to a docker container

I have a stack deployed using a docker-compose file. Some of the containers will need to retrieve and host files located in a git repo (gitlab), what is the best way to retrieve / copy files from the ...
Pier's user avatar
  • 344
0 votes
1 answer
666 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
140 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
578 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
844 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
423 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
544 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 vote
0 answers
424 views

Why can't Headless Chrome in Docker reach my Docker host, while curl can?

Context I am currently working on a PHP (Drupal) project for which I need to render a PDF. In the past I have worked with several PHP libraries to generate PDF's. While some work better than others, ...
vrijdenker's user avatar
0 votes
1 answer
667 views

Cloudformation template with EC2 using docker compose

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
  • 101
0 votes
1 answer
1k 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
413 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
2k 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
0 answers
1k views

Errno 111 Connection refused error when trying to connect to mongodb container

I am trying to set up a flask app using nginx reverse proxy and my flask should be talking to mongodb backend but I can seem to be able to get mongodb to setup the default admin user so. I can connect ...
George Udosen's user avatar

1
2 3 4 5 6