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
13 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 ...
0 votes
1 answer
42 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. ...
0 votes
0 answers
40 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 ...
  • 1
0 votes
0 answers
79 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 ...
0 votes
0 answers
115 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 ...
0 votes
1 answer
45 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 ...
  • 11
0 votes
1 answer
18 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 ...
  • 101
0 votes
0 answers
46 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 ...
  • 101
0 votes
0 answers
22 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 ...
  • 342
0 votes
1 answer
124 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 ...
1 vote
0 answers
42 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 ...
0 votes
1 answer
482 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 ...
0 votes
0 answers
16 views

Docker build/compose + dotnet run shuts down laptop networking

System is MacOS Monterey (12.3) running the latest Docker. I've been working on this codebase for nearly 2 years and this problem suddenly popped up a few weeks ago. Essentially our system has ...
0 votes
0 answers
28 views

I have a create directory permission error with docker-compose (bitcoin and lnd testnet)

I try to run this docker-compose file for lnd and bitcoin testnet: version: '3.7' services: lnd: container_name: lnd image: lightninglabs/lnd:v0.15.4-beta volumes: - lncm-lnd:/data/...
  • 113
2 votes
1 answer
305 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 ...
  • 21
0 votes
0 answers
360 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 ...
0 votes
0 answers
100 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 ...
0 votes
1 answer
146 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 ...
0 votes
0 answers
444 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 &...
2 votes
1 answer
401 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 (...
  • 23
0 votes
0 answers
217 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, ...
0 votes
1 answer
367 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 ...
  • 101
0 votes
1 answer
773 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: ...
0 votes
1 answer
650 views

Why is my docker composer volume not work?

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 up correct validation on the ...
0 votes
0 answers
20 views

Docker compose volumes where can be found on host windows

I have docker-compose file with volumes section for given container: video-streaming: image: video-streaming build: context: ./video-streaming dockerfile: Dockerfile-dev container_name: video-...
0 votes
2 answers
146 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=...
  • 101
1 vote
1 answer
687 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-...
  • 155
2 votes
1 answer
783 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:...
0 votes
0 answers
89 views

Accessing Pelias Geocoder docker compose from other machine

Following this tutorial, I have a docker image running in a Linux machine, with the Pelias Geocoder service: https://github.com/pelias/docker I can access the service from the localhost, in a browser, ...
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 ...
0 votes
1 answer
2k 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 ...
  • 105
2 votes
0 answers
404 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 ...
  • 121
0 votes
0 answers
97 views

What is LDAP and how it is configured in Docker containers?

Background- I am new to working with linux and docker, and I have been told to configure LDAP in a "oraclelinux-8 arm64v8" Docker image. (so that kerberos lookup can be done) What I have ...
0 votes
0 answers
169 views

How to export directory out of a container to the host upon container exit?

I have a yaml file that creates four containers: three are selenium gird containers and the last contains a pytest script. It works the following way: I start the yaml file with the command: docker-...
0 votes
0 answers
28 views

Update to latest patch release using docker-compose

I would like to update gitlab automatically. Our docker-compose.yaml file looks like this: web: image: 'gitlab/gitlab-ee:latest' restart: always hostname: 'example.com' environment: ...
0 votes
0 answers
260 views

How to create a service health in docker-compose that waits for another container to close

I'm creating a solution that uses NodeJS to generate a RESTFul API with express. This solution uses MySQL as a database and who manages the migrations and seeders of the database is the sequelize-cli ...
1 vote
0 answers
472 views

Docker Compose with VPN access

I am having problems in my docker container with a VPN connection: My container is unable to access internal hosts (which are available through VPN connection) I tried temporarily setting network_mode:...
0 votes
2 answers
4k 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 ...
  • 13
0 votes
0 answers
136 views

Access Docker webserver that is port mapped to host IP 127.0.0.1:6443 -> tcp6443

I have a web-server running inside a docker container at port 6443, which I can access it from the docker-host machine using https://localhost:6443; Note the webserver upon connection redirects to ...
  • 1
2 votes
0 answers
177 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 ...
0 votes
0 answers
472 views

How in docker-compose do I bind a specific host IP address to a docker service for outgoing requests?

How in docker-compose do I bind a specific host IP address to a docker service if I want to send any http/https request from the docker service from that selected IP? For example host server has eth0, ...
0 votes
2 answers
1k views

How to automate docker prune commands using crontab

Can someone help me on how to clean up containers and images which are 3 months older automatically by using crontab scheduling? Which type of method need to use for automation? I have manually tried ...
0 votes
1 answer
305 views

Mac M1 Docker Desktop no longer launches

I’ve been using Docker Desktop on my Mac M1 for over a year without trouble and just today it seems to have stopped working. It may have coincided with an update. When trying to open Docker Desktop by ...
  • 101
2 votes
1 answer
1k views

How to access a container/service port in swarm without publishing the port to the outside world?

It is possible to docker-compose to forward a port to the container from localhost only, by writing the desired ports configure in docker-compose.yml, e.g. 127.0.0.1:8080:80. In docker swarm this does ...
0 votes
1 answer
2k views

How to connect my host to Redis cluster network on docker-compose

I'm running this docker-compose.yaml on my machine (Mac with docker desktop) but am not able to connect the cluster with redis-cli. I'm running it with docker-compose up --build I'm able to run redis-...
  • 101
0 votes
1 answer
759 views

My Python application doesn't communicate with MySQL inside docker. Can someone help me?

The connection is not succeeding in docker. Look at my settings: Dockerfile FROM python:3.8.5-alpine WORKDIR /app COPY requirements.txt . RUN python3 -m pip install --upgrade pip RUN pip install -...
1 vote
1 answer
1k views

docker-compose does not update /etc/hosts at build time

When building an image of a docker container I need to access a service on host localhost. It looks like --add-host option for docker command updates /etc/hosts both at image build time and container ...
  • 111
2 votes
1 answer
88 views

Is it good or ok or a bad practice to add Dependency via a RUN command in Dockerfile?

I am trying to create an image using a multi-stage build for a node project. I am using NestJs for the project since it uses TypeScript, and if I install only production dependency in the production ...
  • 121
3 votes
3 answers
6k views

docker-compose exec does not execute command even when container is running

I have a docker-compose-custom.yml file like this: version: '3.8' services: myapp-back-preproduction: build: context: . container_name: myapp-back-preproduction image: 'myapp-back-...
  • 133
2 votes
1 answer
4k views

From inside a Docker container, how can I consume an API that is on the machine's localhost?

First of all, please forgive me if any information is missing or if my question does not meet the standards required by the site. I have very basic knowledge of docker, linux and networking and I am ...

1
2 3 4 5