Questions tagged [docker-compose]
docker compose up : to start the container with docker-compose.yml docker compose up -d : to start the container with docker-compose.yml and run in background - docker-compose down : to shutdown the above container docker compose -f docker-compose.databases.yml : to run a specific docker-compose file - docker-compose -f docker-compose.databases.yml down
111 questions
1 vote
0 answers
20 views
Network Completely Drops on Docker CLI Restarts
I have been having this issue for months now and haven't gotten to the bottom of it. I'm curious what others think and haven't found the answer. I am running a server with the following: Ubuntu ...
0 votes
0 answers
19 views
vim-tmux-navigator doesn't seem to work in a docker container
EDIT Seems like there is a question as to why I have this setup. Per company policy I'm developing on a remote machine. The machine is Amazon Linux 2, which is not upgradable. We will not be switching ...
1 vote
1 answer
84 views
Backup named docker volumes
Could someone please explain why I should not backup my named docker volumes by simply backing up (copying) the "/var/lib/docker/volumes" directory recursively? This seems much easier than ...
0 votes
0 answers
202 views
Sysctl permission issue on privileged Docker Proxmox LXC (for Wireguard setup)
I'm working from a Docker container within a Proxmox LXC as part of a home lab setup with Wireguard and Qbittorrent. I've gotten through many other issues but whenever I launch it, I get this error: ...
3 votes
1 answer
125 views
What would be the best way to undo `docker-compose up`?
I am given a very long docker-compose.xml file, with tens of containers inside. But it is not well configured, so I have to try it out: after docker-compose up -d, I observe some missing ...
1 vote
1 answer
138 views
How to route traffic from a Docker container to a local port?
I would like to route traffic from a container to a local host port. I can not use the port exposure command line option for docker run, because the port is already in use. Conceptually, with the ...
1 vote
1 answer
118 views
SvelteKit service accessed via Traefik can't load JS modules due to "disallowed MIME type"
I have the barebones example SvelteKit app & a Traefik reverse proxy both running inside Docker containers. When accessing the SK app directly (i.e. without going through Traefik first), the page ...
0 votes
2 answers
166 views
How to use exported shell variable inside Docker Compose container?
I am using docker compose to pull the image and run the container. During this process I am calling a shell script to encrypt DB password and using export command I export to a variable. e.g. export ...
0 votes
0 answers
114 views
Rspamd Container unhealthy in Mailu installation: cannot reach Aministration Container
I am running a Mailu Mailserver via Docker, configured with a docker Compose file using Portainer and an upstream unbound for DNS. All but one container are healthy when i start the stack. The rspamd ...
0 votes
0 answers
220 views
Traefik doesn't use letsencrypt certificate and use its self-signed one
I have a docker-compose with severall apps, and traefik to do the routing and handle SSL/TSL certificates. I changed DNS supplier from Google to OVH, and then it didn't work. I thought I just had to ...
0 votes
0 answers
51 views
Traefik - Dynamic Router Name Config
i want to have multiple instances of the same service hosted with docker compose & traefik. My relevant service-label-config for traefik in docker-compose.yaml of the service is: labels: traefik....
1 vote
0 answers
41 views
Updating Postgres Image Causes Other Containers to Use Untagged (<none>) Image
Hello Docker Community, I’m facing an issue when updating a shared postgres:16 image used by multiple containers. Here’s the problem: Scenario: Multiple containers rely on the same postgres:16 image. ...
0 votes
0 answers
204 views
Binding a docker container only to a specific VLAN
Sorry if this is a duplicate question, but I've been searching for a while, and can't find a solution for my use case. Tried AI bots... that was just a huge waste of time and energy. I have a Ubuntu ...
0 votes
0 answers
161 views
How to access Transmission’s web UI from outside of a Docker container?
My goal is to have all Transmission's network traffic go through my VPN, except the web interface which would only be accessible locally. I have a first Docker container, for the VPN: name: mullvad-...
1 vote
1 answer
890 views
Gluetun cannot find TUN device in docker
This was working yesterday, but after a restart of the underlying hardware, has stopped working. My docker-compose.yml; version: '3.8' services: gluetun: image: qmcgaw/gluetun ...
0 votes
1 answer
496 views
How to config Resources Allocation on Docker Engine?
How can we limit the CPU and memory used by Docker Engine and Docker Compose like I do in my Ubuntu dev machine, which has Docker Desktop?
0 votes
0 answers
76 views
pi-hole running on Docker Desktop not filtering using network_mode: host
I try to run pi-hole via docker compose using Docker Desktop on Mac OS X. I managed to get it working as expected using the following docker-compose.yml services: pihole: image: pihole/pihole:...
1 vote
1 answer
2k views
Docker Compose: qBittorrent and NordVPN Configuration Issue
I'm relatively new to using Docker and Docker Compose, and I've run into an issue that I can't figure out how to resolve. Any help would be greatly appreciated! Here’s my setup: Container 1: Hosts ...
3 votes
1 answer
990 views
Why am I not able to see mounted folder with Docker-Desktop with WSL2?
I am facing some weird problem, I suspect, I am missing something but not able to find what is wrong. I spent quite a bit of time but not able to find what the problem is. I have windows 10 with wsl2 ...
0 votes
1 answer
136 views
How to configure an app in a Docker container which needs to contact server on remote machine?
On my local network, 192.168.1.0/24, I have a docker compose file that starts up a container on my Ubuntu localhost. This container has an app that tries to connect (TCP) to a remote server on a ...
3 votes
1 answer
285 views
How to tie Docker container status to CIFS volume status?
In my home lab I have containers spread across a few devices (mainly a server and a NAS). I have Docker containers running on the server whose main storage is on the NAS, and I have named cifs volumes ...
1 vote
1 answer
2k views
How to set up Caddy with Let's Encrypt SSL and Duck DNS to serve multiple services running as Docker containers?
I have managed to set up VaultWarden that is only accessible on a local LAN with a lets encrypt SSL certificate using Caddy. Caddy, VaultWarden and other services run as Docker containers that run on ...
0 votes
1 answer
71 views
NGINX cannot resolve docker container service
I have a Linux server with NGINX where I deploy docker-compose projects. On the server I'm running docker compose with a service exposed on port 12345 (an example). docker-compose.yml: name: poc-...
4 votes
1 answer
2k views
How can I have the docker-healthcheck run outside of the container?
I may be a bit confused, but what I want to do is have a healthceck that runs outside the container, for instance on the host. I'm not sure why docker itself can't do the curling to the container, to ...
1 vote
0 answers
40 views
Additional services not starting in `docker compose`
docker-compose.yaml services: mailserver: image: ghcr.io/docker-mailserver/docker-mailserver:latest container_name: mailserver hostname: dms.example.com ports: - "25:25&...
2 votes
1 answer
456 views
How to create a docker container with React
I’m trying to build a docker container that installs react and its dependencies and then replicates those installations on my machine, so I don’t have to install the dependencies every time I want to ...
1 vote
0 answers
364 views
Docker how to overcome "change of ownership" error of a folder from an external mounted SSD drive
I have a question regarding ownership mapping of folders via the Docker-Compose file. Shortly to my problem: I'm using Docker on my RaspiPi 4 and wanted to enter the world of paperless office (...
0 votes
0 answers
811 views
Error while loading shared libraries in privileged Docker container when trying to execute man in bash after kernel update
This is the exact and complete error message: man: error while loading shared libraries: /lib/x86_64-linux-gnu/libc.so.6: cannot apply additional memory protection after relocation: Permission denied ...
0 votes
0 answers
165 views
Docker Desktop Requires Restart to Establish Communication with Remote Server
I'm running a docker-compose stack on Windows (Docker Desktop). The primary service in this stack communicates with an external server to advertise the presence of the child process. When I first ...
2 votes
1 answer
2k views
Persistent Volumes using Docker Compose (Dokploy, Directus)
I'm relatively new to Docker and trying to learn self-hosting to host some small projects. I use a reasonably new PaaS tool called Dokploy to manage my containers. I have been trying to run Directus (...
0 votes
1 answer
452 views
.mysql_history: how to persist it with the official MariaDB Docker image?
How does it work the MariaDB .mysql_history file from the official MariaDB Docker image? It's not really something I want in production. But it might be handy in a developer setup. Also, although it ...
0 votes
1 answer
257 views
Failed to set the root user to MongoDB
I have created a MongoDB docker container with the following compose.yaml --- services: mongodb: image: "docker.io/library/mongo:7.0.11" container_name: mongodb restart: unless-...
0 votes
1 answer
195 views
Docker Compose network isolation mechanism in Linux
When I deploy Docker Compose services, I found that the Docker containers are all on one bridged linux segment; this much is expected. However, sometimes I have had problems connecting from one linux ...
0 votes
1 answer
449 views
Linux Docker compose container cannot ping another bridged Docker container
Overview I need a Docker Compose zabbix host to ping a host on a containerlab docker network. These two Docker networks run under a linux Docker host machine as below... This information comes from ...
0 votes
1 answer
193 views
Nextcloud android app does not work with the community nextcloud docker image, and caddy as a reverse proxy
I want to setup nextcloud in my home server with the following (in order of importance): Nextcloud is fast on a web browser and phone Nextcloud is encrypted with trusted SSL certificates, but without ...
0 votes
1 answer
1k views
"Operation not permitted" when accessing a NFS mounted directory inside a docker container
I am working on a Web-App which needs access to a QNAP-NAS file system to edit and create directories and files inside it. In order to mount the NFS to the docker container, I used the following ...
0 votes
1 answer
522 views
How do I configure Docker containers for Traefik Proxy correctly?
I was trying to test out Traefik Proxy, so I added Traefik labels to an existing Compose file I had for OpenSpeedTest. version: '3.3' services: speedtest: restart: unless-stopped ...
-1 votes
1 answer
240 views
can't docker-compose up all at once on ec2 t2.micro
I have 3 services in my compose.yaml, 2 web apps and nginx proxy manager, on ec2 if I call sudo docker-compose up it will eventually freeze and the instance will become unresponsive ( I have to reboot ...
0 votes
1 answer
983 views
Is it possible to change the default user of docker minio/minio:latest from root to any other username/group?
I am using minio/minio:latest image in my docker-compose.yaml file, and I want the minio docker container to have a user other than root. after checking the /usr/bin/docker-entrypoint.sh shipped with ...
0 votes
0 answers
115 views
Does docker (-compose) support pure L1 or L2 networking?
As a hobby project I'm trying to build a "mini internet" from the ground up, including hosts, routers, dhcp, dns, tls, the works, but I'm having trouble finding a platform that is as "...
0 votes
1 answer
199 views
docker-compose output format has changed to long, how to get back short output?
Output of docker compose ps command in docker compose version v2.20.x and earlier was short, since "COMMAND" column was truncated: $ sudo apt-get install 'docker-compose-plugin=2.20.*' [...] ...
1 vote
0 answers
139 views
New to self-hosting and struggling with Monica CRM Docker setup (503 Error)
As someone new to self-hosting, I embarked on what I thought would be a relatively simple project: setting up Monica CRM using Docker. However, I've encountered an unexpected challenge and am seeking ...
1 vote
1 answer
2k views
Error when setting up Ansible AWX
Im setting up Ansible AWX on my Windows 10 machine using docker-compose. When running the install playbook ansible-playbook -i inventory install.yml I get the error below. Im able to see the login ...
0 votes
2 answers
3k views
How to connect to WSL Docker Container using localhost keyword
Is there some way to connect to a container, running inside WSL 2, using the keyword localhost instead of 127.0.0.1:port? To give more context, I have a Docker Compose to run a Microsoft SQL Server ...
1 vote
0 answers
2k views
Why can my Docker host access containers on ipvlan when network parent is WiFi, but not when network parent is Ethernet?
I have a Docker compose setup that consists of two containers (though I will be adding more once I get past my current problem). I am running it on a Linux Mint machine with Docker 24.0.7 and Docker ...
0 votes
1 answer
2k views
Error response from daemon, stat overlay no such file or directory after changing docker root location
I changed docker's data root on my system because the var partition was beginning to fill up, following this tutorial but substituting --data-root instead of -g. After making the switch, one of my ...
0 votes
1 answer
2k views
How to install latest docker-compose without docker desktop
I have installed docker this way https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository └─$ docker --version Docker version 24.0.5, build 24.0.5-0ubuntu1~20.04.1 then trying to ...
2 votes
1 answer
548 views
Within Docker, how to correctly add a task to cron programmatically (scripting)? no errors are perceived in log
After several days of messing around with Docker, I have not found a solution to my problem. In short, I have tried to add cron to php:8.1-apache-bullseye and pass it a file with the task that I want ...
1 vote
0 answers
127 views
Launch docker container from power shell fail, unexpected behavior?
I have created the following script in powershell for two objectives: read from an .env file the setup of the local urls of my development environment and deploy them to the Windows hosts file. take ...
1 vote
1 answer
2k views
How does Docker Desktop work on Linux (Ubuntu)?
I was using Docker CLI when working with Linux. But recently I reinstalled my system so wanted to try Desktop version: enabled KVM, made sure file sharing thing is working, initialized pass thing, ...