Questions tagged [docker-compose]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Monitor folder and subdirectories to show log in a single output

I have a local program whose execution generates many log files, which is why it is becoming difficult for me to follow its operation. I would like to know if there is any way to monitor a folder and ...
user avatar
  • 111
0 votes
1 answer
26 views

Mount SMB share (CIFS) to container using secured credentials or token

I have a docker-compose setup that runs my Linux development environment on Windows. A number of these containers need to mount smb drives using LDAP credentials. The way this woks now is by adding a ...
user avatar
0 votes
0 answers
70 views

Cannot access a docker hosted webserver from external network

I’m in the process of migrating a small personal website from a virtualbox vm to a docker container that is hosted on my personal computer. But I get into an issue where I get a "connection timed ...
user avatar
  • 101
0 votes
0 answers
19 views

minecraft private server user sources

Hi i try setup private server itzg/minecraft-server for my kids (host is ubuntu). i use docker-compose version: "3.8" services: minecraft-server: image: itzg/minecraft-server ...
user avatar
  • 267
0 votes
0 answers
14 views

Why COMPOSE_PROJECT_NAME is not visible from --env-file?

I deploy my stack with command docker-compose --env-file up --detach, but specified project name is not assigned. When I set up it as environment variable then it works COMPOSE_PROJECT_NAME=proj ...
user avatar
0 votes
1 answer
38 views

Docker Swarm - Containers can ping between nodes, cannot communicate over TCP ports

I'm setting up a new Docker Swarm mode cluster on three Linux machines - all brand new installations. All three machines have their firewalls and security modules (AppArmor) disabled and I could ...
user avatar
  • 1
0 votes
1 answer
15 views

what is the docker-compose.exporters.yml in this repo and how to call it?

I was reviewing a repo for a monitoring system and I saw a docker composer like this\ Repo link I ran the project as usual by docker-compose up, but I want to know what is docker-compose.exporters....
user avatar
  • 507
0 votes
1 answer
21 views

How do I add export CLI='docker run -it --entrypoint cardano-cli -e NETWORK=testnet ...' so I can run CLI on Mac OS Monterey zshrc

I have tried adding the following export CLI='docker run -it --entrypoint cardano-cli -e NETWORK=testnet -e CARDANO_NODE_SOCKET_PATH=/ipc/node.socket -v cardano-node-ipc-testnet:/ipc inputoutput/...
user avatar
  • 1
0 votes
0 answers
121 views

How to mount a cifs Partition for docker-compose?

I want docker-compose to mount one of the volumes to a mounted CIFS partition. I used the seafile docker-compose file and changed the volumes to ... db: ... volumes: - /mnt/nas_share/...
user avatar
  • 223
0 votes
0 answers
76 views

Using docker-compose with multiple actual users on one machine for a single project

A friend and I started working on a project together, and we wanted to try using a single remote dev environment for it. I created a VM on Oracle's Cloud Infrastructure, and created a user for my ...
user avatar
0 votes
1 answer
239 views

docker build - use a containers network

I have a windows 10 host, using docker desktop 4.6.1. I have a docker-compose.yml which contains the two services vpn and app. What I want to achieve is, that the build process of docker already uses ...
user avatar
  • 936
0 votes
1 answer
242 views

How can I use GitLab under a relative URL on docker?

I'm using gitlab-ce on docker. These are my system specifications. A container of GitLab is gitlab/gitlab-ce. The web frontend is using external NGINX. GitLab is mounted under /git. I read the the ...
user avatar
  • 1
1 vote
1 answer
592 views

docker-compose build error for nodejs and yarn: [gpg: no valid OpenPGP data found.]

I have been trying to get a project to work for my job. I recently got a M1 Air, however I had a similar issues when I was doing the same thing on a Windows machine with WSL. The error is as follows: ...
user avatar
  • 53
0 votes
0 answers
111 views

Host can't resolve domain names when docker container is running

I'm running minimal Debian 10 dist. I have some strange issue with domain name resolving while docker container is running. Simple curl ifconfig.io (or any other domain / or any other tool) fails when ...
user avatar
  • 101
0 votes
0 answers
125 views

What's the benefit of Docker Compose Switch over a symlink?

There are at least two ways to use Docker Compose v2 as a drop-in replacement for Docker Compose v1: Compose Switch # ln -s /usr/local/lib/docker/cli-plugins/docker-compose /usr/local/bin/docker-...
user avatar
  • 121
0 votes
2 answers
565 views

docker-compose detach keyboard shortcut?

I'm running Docker Desktop 4.2.0 on Windows 10 Pro. Until recently, to detach from containers after running docker-compose up, I could use the keyboard shortcut CTRL + z. This stopped working. How to ...
user avatar
  • 146
0 votes
1 answer
48 views

docker networks and port exposure

I have troubles understanding how to create the following setup using docker-compose. Basically I have three containers (with separate docker-compose.yaml files, each started separately). I also have ...
user avatar
  • 135
0 votes
1 answer
215 views

I can't install virtualbox on Debian11 - Windows User

I'm a Windows-user and I have installed Debian11 through the Windows Store. I'm struggling and failing with installing VirtualBox on Debian11. I downloaded VirtualBox 6.1(.28) from here: VirtualBox 6....
user avatar
0 votes
0 answers
37 views

Configuring server names in docker

I am a docker/network admin novice trying to setup home assistant via docker. I have setup two docker stacks (via docker compose) to do this. One is for swag (so is running nginx) and the other runs ...
user avatar
0 votes
0 answers
22 views

Cannot run maria db container in raspberry pi due to 2038 date error

I am trying to setup home assistant with docker on my raspberry pi 4. I have installed raspberian. Here is my docker-compose file:- version: '3' services: homeassistant: container_name: hass ...
user avatar
0 votes
1 answer
16 views

Copy docker configuration to other PC

I’m using docker composer in order to run ChirpStack on my Windows 10 machine. I need to reinstall operating system, but how to keep working ChirpStack docker system without creating new one?
user avatar
  • 2,089
0 votes
0 answers
25 views

Use windows environment variables in docker-compose.yaml file

I would like my Windows Username available in my (Linux) container as $WINDOWS_USERNAME using docker-compose. But when I try accessing it with ${env:USERNAME}, I get this error: ERROR: Invalid ...
user avatar
0 votes
1 answer
88 views

Docker expose port with advance firewall rules

I'm using docker-compose to deploy my app. I want to access the deployment database from my development machine. Is there a way to expose a port with a source IP address limit? Like what happens in ...
user avatar
1 vote
1 answer
179 views

Xubuntu 20.4, Xdebug 3 and Docker: Impossible to connect from container to host

I've been struggling with this for some time and here I am :-) I have a php container with xdebug installed in a Ubuntu 20.04 laptop: rest-example-php-8: container_name: rest-php build: ./...
user avatar
  • 121
0 votes
0 answers
140 views

403 Error in nginx container and no access or error log (Development environment on ubuntu)

I've been struggling with this one for quite a while. I've set a dev environment for a PHP project (nginx, php, mysql and redis). Here's my docker-compose.yaml version: '3.7' services: rest-mysql: ...
user avatar
  • 121
0 votes
0 answers
874 views

Can't ping service inside Docker container from the host machine

I'm running a container via docker-compose on Ubuntu 20.04, and I can't ping or curl the web server that's running inside from the host machine that's running docker. I've given the container a static ...
user avatar
  • 161
1 vote
1 answer
60 views

Docker get a list of possible environment variables

Hello! After intensive research I decided to bring this question up to the community. I started learning docker & docker-compose not long ago. My question is: How can I get a list of the possible ...
user avatar
0 votes
1 answer
369 views

caddy-docker-proxy to host port

I'm running cockpit on port 9090 on my host machine. In a docker container on the host is the caddy-docker-proxy. The reverse proxy (RP) container is linked to the host ports 80 and 443. Is there any ...
user avatar
1 vote
0 answers
253 views

Mounting CIFS using hostname doesn't work

This comes from an old suggestion https://github.com/moby/moby/pull/39250 on an issue. I am trying to mount a CIFS volume, config it via IP worked for me but when I try to config it using a hostname ...
user avatar
  • 11
0 votes
1 answer
805 views

ERROR: error pulling image configuration: error parsing HTTP 403 response body: invalid character 'F' looking for beginning of value: "Forbidden!"

I've installed docker 20.10.6 and 1.21.0 on centos linux 7 OS machine and when I run below command I get error docker-compose -f multiconnect-compose.yml up -d Error Creating network "...
user avatar
  • 1
0 votes
2 answers
97 views

How to limit the sum of memory used by a group of docker containers?

I am using the python API of Docker. How can I limit the memory used by a group of Docker containers? (not on Kubernetes but on a regular, vanilla Docker machine). Let's say we have container A and B: ...
user avatar
  • 1
0 votes
1 answer
36 views

What conditions does docker swarm use to redirect to a container?

I am using docker swarm with multiple notes and multiple instances of one docker image. As far as I know is there no influence about which container I interact with after a request. But how does the ...
user avatar
  • 185
7 votes
0 answers
8k views

Docker: "failed to get console mode for stdout: The handle is invalid."

When running docker-compose up in Windows PowerShell using Docker Desktop on WSL2, I get Creating network "test_default" with the default driver Building master failed to get console mode ...
user avatar
0 votes
1 answer
858 views

How to setup docker in read_only mode in docker-compose

Many guides shows, it is good to make the container in read_only mode. However, how to do this in docker-compose? Many containers save logs at least, so they need r+w permission. How do you setup ...
user avatar
1 vote
1 answer
60 views

How to check smart status from within a Docker container?

I would like to run this command from within a docker-compose container: nvme smart-log /dev/nvme0n1p1 Unfortunately I get this error: /dev/nvme1n1p1: No such file or directory How do I map this ...
user avatar
  • 121
1 vote
1 answer
110 views

ROS in docker-compose leads to "bash: line 0: cd: MYPROJECT: No such file or directory"

I am a clear beginner at docker and I try to create a docker-compose where two containers can see each other. It could be that this question is a duplicate of many others about the "No such file ...
user avatar
0 votes
0 answers
138 views

How to change a file in /etc inside a docker container using dockerfile?

I have a docker application, I want to append the word "Hellow" to the passwd file inside the docker container. I made this change to Dockerfile: RUN echo "Hellow" >> /etc/...
user avatar
  • 142
2 votes
1 answer
3k views

“volumes 'type' is a required property” error with docker-compose

I have just started to learn how docker works and I have a problem with the yaml file when using docker-compose. version: '3.7' services: portainer: container_name: portainer image: ...
user avatar
1 vote
1 answer
571 views

How to get QEMU to use a named Docker interface?

Question Is it possible to get QEMU to use a named Docker interface and network on the same host machine? Motivating exmaple: Let's say I have a DHCP server in a Docker container with static IP ...
user avatar
  • 347
1 vote
0 answers
461 views

Docker-proxy prevents container to start after reboot

I have a PC used as a NAS running a NextCloud instance as a set of docker containers managed via docker-compose, I'll provide the docker-compose.yml below. My problem is that, even though all my ...
user avatar
  • 11
1 vote
1 answer
232 views

Why won't journalctl show logs when the program output is piped?

I'm trying to run my docker-compose containers via a systemd service, and have fail2ban read their logs. However, docker-compose adds a prefix like: container_name_1 | Actual log message So what I'...
user avatar
  • 151
4 votes
3 answers
5k views

Docker containers cannot connect to internet in Fedora 32?

The Problem I have recently created a docker container that has to pull a public github repository, however, it isn't able to resolve the host github.com. In fact, it isn't able to even execute ping ...
user avatar
0 votes
1 answer
46 views

Upgraded docker but old configuration is running after reboot

I upgraded my Docker install on my Ubuntu system the other day. According to my docker version command I am on version 19.03.8 for the client and 18.09.9 on the server. I had my original docker-...
user avatar
0 votes
1 answer
544 views

How to set an Odoo docker container using local database?

I am trying to set an Odoo docker container that will use a local postgres database. What kind of configuration params should I use in a docker-compose to make that possible? I could use some help ...
user avatar
1 vote
1 answer
565 views

how should I set the volume of docker-swarm

I am planning to move docker-compose to docker-swarm for multi nodes. I have used docker-compose like this below version: '3' services: python: container_name: python build: ./python ...
user avatar
  • 467
1 vote
0 answers
879 views

Auto rebuild docker container after any code change

I'm running two containers using docker-compose. Is there an option to force docker-compose to rebuild and to run the container after any code change? If so, I would like to get an example. If it isn'...
user avatar
  • 111
1 vote
1 answer
1k views

Getting WordPress on an Nginx proxy to work with a subdirectory

I'm trying to use the WordPress official Docker container to serve content from https://example.com/blog. An Nginx instance sits in front of WordPress and handles all the SSL-ishness. Nginx is ...
user avatar
  • 445
0 votes
1 answer
338 views

unable to run "docker-compose up" after replaced Docker Desktop for Windows by Docker Toolbox

Scenario: I had my docker-compose.yml working as expected when I was using Docker Desktop For Windows (here is Windows 10 Pro). Since I had to use also Virtual Box + Minishift in same Notebook I read ...
user avatar
  • 123
0 votes
1 answer
3k views

Docker image with python and crontab

I am trying run a docker container with python code and crontab (scheduler) below is my script: Docker file FROM ubuntu:latest MAINTAINER docker@ekito.fr RUN apt-get update && apt-get ...
user avatar
0 votes
1 answer
362 views

Automatically publish packages to a BaGet/Nuget running in Docker with Docker Compose

I am setting up a development environment in Docker. As part of that, I need to run a local NuGet server to host private NuGet packages. I've picket BaGet (https://loic-sharma.github.io/BaGet/) and ...
user avatar