# Compose

**URL:** https://forums.docker.com/c/docker-engine/compose/15.md

[Latest](https://forums.docker.com/latest.md) · [Categories](https://forums.docker.com/categories.md) · [Tags](https://forums.docker.com/tags.md)

---

## [About the Compose category](https://forums.docker.com/t/about-the-compose-category/2388)

<div class="topic-metadata">

**Author:** [@rufus](https://forums.docker.com/u/rufus)\
**Replies:** 0

</div>

Compose is a tool for defining and running multi-container applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does e…

---

## [Docker-compose service restarting continuously with warnings about unset variables](https://forums.docker.com/t/docker-compose-service-restarting-continuously-with-warnings-about-unset-variables/140033)

<div class="topic-metadata">

**Author:** [@dokooo](https://forums.docker.com/u/dokooo)\
**Replies:** 22\
**Last updated:** [September 24, 2026, 11:46am UTC](https://forums.docker.com/t/docker-compose-service-restarting-continuously-with-warnings-about-unset-variables/140033 "2026-09-24T11:46:29Z")

</div>

I am encountering an issue with my Docker-compose setup where one of the services, specifically the profiles service, keeps restarting continuously. I’m seeing warnings in the logs related to unset variables, but I’m not…

---

## [Handling WebSocket connection dropouts in Nginx reverse proxy with scaled Docker Compose services](https://forums.docker.com/t/handling-websocket-connection-dropouts-in-nginx-reverse-proxy-with-scaled-docker-compose-services/152349)

<div class="topic-metadata">

**Author:** [@alitek56](https://forums.docker.com/u/alitek56)\
**Replies:** 1\
**Last updated:** [September 7, 2026, 6:16pm UTC](https://forums.docker.com/t/handling-websocket-connection-dropouts-in-nginx-reverse-proxy-with-scaled-docker-compose-services/152349 "2026-09-07T18:16:16Z")

</div>

Hello Docker community, We are currently re-architecting and containerizing the web platform and live kiosk services for our visitor management solution The architecture uses Docker Compose to orchestrate an Nginx reve…

---

## [Bug Report: docker compose references a YAML file not present in the current working directory](https://forums.docker.com/t/bug-report-docker-compose-references-a-yaml-file-not-present-in-the-current-working-directory/152339)

<div class="topic-metadata">

**Author:** [@zhuyifeiruichuang](https://forums.docker.com/u/zhuyifeiruichuang)\
**Replies:** 2\
**Last updated:** [September 3, 2026, 3:42am UTC](https://forums.docker.com/t/bug-report-docker-compose-references-a-yaml-file-not-present-in-the-current-working-directory/152339 "2026-09-03T03:42:14Z")

</div>

Problem Description: Using MinIO as an example, both Directory A and Directory B contain their own compose.yaml for MinIO. Querying deployment status in Directory A unexpectedly reads resources from Directory B. In fact…

---

## [Direct command to compose up/down a profile without up/down default](https://forums.docker.com/t/direct-command-to-compose-up-down-a-profile-without-up-down-default/152172)

<div class="topic-metadata">

**Author:** [@h3yfr13nd](https://forums.docker.com/u/h3yfr13nd)\
**Replies:** 4\
**Last updated:** [July 31, 2026, 9:05pm UTC](https://forums.docker.com/t/direct-command-to-compose-up-down-a-profile-without-up-down-default/152172 "2026-07-31T21:05:33Z")

</div>

There’s no proper way to compose down only a profile’s services without specifying specific service names or getting default services down along as well. For e.g. if you do docker compose --profile=xyz down removes the …

---

## [How to handle server reboot when using docker-compose?](https://forums.docker.com/t/how-to-handle-server-reboot-when-using-docker-compose/26374)

<div class="topic-metadata">

**Author:** [@patakijv](https://forums.docker.com/u/patakijv)\
**Replies:** 17\
**Last updated:** [July 14, 2026, 9:52am UTC](https://forums.docker.com/t/how-to-handle-server-reboot-when-using-docker-compose/26374 "2026-07-14T09:52:05Z")

</div>

When using docker run for a single container, I understand that I can assign a restart policy to make sure the container is restarted by docker when the server reboots. What is the equivalent practice when using docke…

---

## [Cannot login into private hub: Unusable public key](https://forums.docker.com/t/cannot-login-into-private-hub-unusable-public-key/151828)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forums.docker.com/u/actionmystique)\
**Replies:** 2\
**Last updated:** [June 9, 2026, 5:03pm UTC](https://forums.docker.com/t/cannot-login-into-private-hub-unusable-public-key/151828 "2026-06-09T17:03:11Z")

</div>

I have setup my own private hub repository as described in this post. The hub repository has been setup with several users/passwords (using htpasswd). I have no issue login into that remote repository from a local clie…

---

## [How to proxy incoming traffic between two containers?](https://forums.docker.com/t/how-to-proxy-incoming-traffic-between-two-containers/151682)

<div class="topic-metadata">

**Author:** [@jackiewaltryan](https://forums.docker.com/u/jackiewaltryan)\
**Replies:** 5\
**Last updated:** [May 13, 2026, 7:47pm UTC](https://forums.docker.com/t/how-to-proxy-incoming-traffic-between-two-containers/151682 "2026-05-13T19:47:29Z")

</div>

Hi. I have two proxies. I need to redirect all incoming traffic to the first container through the second and back. I’m a bit new to Docker and don’t understand how to do this. Here’s an example of my compose (unnecess…

---

## [Auto start container mit 3 images and 2 volumes](https://forums.docker.com/t/auto-start-container-mit-3-images-and-2-volumes/151647)

<div class="topic-metadata">

**Author:** [@hoki62](https://forums.docker.com/u/hoki62)\
**Replies:** 2\
**Last updated:** [May 9, 2026, 12:14am UTC](https://forums.docker.com/t/auto-start-container-mit-3-images-and-2-volumes/151647 "2026-05-09T00:14:35Z")

</div>

Hallo I have this images vtiger-php-apache mariadb phpmyadmin it has this compose.yaml: services: php-apache: build: context: . dockerfile: Dockerfile restart: always volumes: - Vti…

---

## [Volumes problem](https://forums.docker.com/t/volumes-problem/151604)

<div class="topic-metadata">

**Author:** [@mrsmagoo](https://forums.docker.com/u/mrsmagoo)\
**Replies:** 10\
**Last updated:** [May 5, 2026, 3:27pm UTC](https://forums.docker.com/t/volumes-problem/151604 "2026-05-05T15:27:31Z")

</div>

Hello, I installed dolibarr on my NAS SYNOLOGY DS923+ with “Project” Container manager… The creation goes well when I launch my docker compose: version: '3' services: mariadb: image: mariadb:10.6 container\_na…

---

## [Redirect to localhost:8088 in Superset running on GitHub Codespaces (Docker)](https://forums.docker.com/t/redirect-to-localhost-8088-in-superset-running-on-github-codespaces-docker/151581)

<div class="topic-metadata">

**Author:** [@tier666](https://forums.docker.com/u/tier666)\
**Replies:** 5\
**Last updated:** [April 30, 2026, 12:14pm UTC](https://forums.docker.com/t/redirect-to-localhost-8088-in-superset-running-on-github-codespaces-docker/151581 "2026-04-30T12:14:10Z")

</div>

Hi everyone I’m running Apache Superset via Docker Compose in GitHub Codespaces. The UI is accessible at github dev. The issue: When I click the “Create Dashboard” (or “Create Chart”) button, Superset redirects me to…

---

## [Docker Compose Volume Mount Leading Whitespace Regex Error](https://forums.docker.com/t/docker-compose-volume-mount-leading-whitespace-regex-error/151534)

<div class="topic-metadata">

**Author:** [@jferguson3](https://forums.docker.com/u/jferguson3)\
**Replies:** 4\
**Last updated:** [April 21, 2026, 5:09pm UTC](https://forums.docker.com/t/docker-compose-volume-mount-leading-whitespace-regex-error/151534 "2026-04-21T17:09:33Z")

</div>

Issue type: Volume mount CLI argument creates additional leading whitespace that causes regex error OS Version/build: RHEL 9.6 App version: Docker Compose version v5.1.3 Steps to reproduce: Code: PARAM\_MOUNT\_POINTS="-…

---

## [Issues with configuring containers to communicate via Multicast](https://forums.docker.com/t/issues-with-configuring-containers-to-communicate-via-multicast/151513)

<div class="topic-metadata">

**Author:** [@cheathcock](https://forums.docker.com/u/cheathcock)\
**Replies:** 1\
**Last updated:** [April 17, 2026, 4:12pm UTC](https://forums.docker.com/t/issues-with-configuring-containers-to-communicate-via-multicast/151513 "2026-04-17T16:12:52Z")

</div>

I am running into an issue getting Multicast working in a docker environment. The goal is to have 1 container act as a router for all network communication between the other containers, since the goals is to use that con…

---

## [Make container wait for nvidia CDI to start](https://forums.docker.com/t/make-container-wait-for-nvidia-cdi-to-start/151494)

<div class="topic-metadata">

**Author:** [@nemlehet](https://forums.docker.com/u/nemlehet)\
**Replies:** 2\
**Last updated:** [April 14, 2026, 7:53pm UTC](https://forums.docker.com/t/make-container-wait-for-nvidia-cdi-to-start/151494 "2026-04-14T19:53:22Z")

</div>

Hey Guys, Probably its a simple thing, but I’m pretty new to docker and linux and I couldnt find a good explanation how to do this. I have a RTX3090 in my home server. It works with docker no problem. However if I rest…

---

## [Detach pending during container health check](https://forums.docker.com/t/detach-pending-during-container-health-check/151456)

<div class="topic-metadata">

**Author:** [@literallyltu](https://forums.docker.com/u/literallyltu)\
**Replies:** 5\
**Last updated:** [April 8, 2026, 4:45pm UTC](https://forums.docker.com/t/detach-pending-during-container-health-check/151456 "2026-04-08T16:45:36Z")

</div>

Hey there I recently noticed a small but annoying issue. When I run docker compose up and it gets to the health check, if I try to detach, docker compose doesn’t give me control and waits for the health check to finish.…

---

## [Tools like arcane/portainer/loggifly etc, started separately are not connecting through socket-proxy:2375 to docker-daemon](https://forums.docker.com/t/tools-like-arcane-portainer-loggifly-etc-started-separately-are-not-connecting-through-socket-proxy-2375-to-docker-daemon/151359)

<div class="topic-metadata">

**Author:** [@elindemann](https://forums.docker.com/u/elindemann)\
**Replies:** 2\
**Last updated:** [March 20, 2026, 10:43am UTC](https://forums.docker.com/t/tools-like-arcane-portainer-loggifly-etc-started-separately-are-not-connecting-through-socket-proxy-2375-to-docker-daemon/151359 "2026-03-20T10:43:50Z")

</div>

Hello @all, need help after reading a lot sources to docker/socket-proxy etc. I am rel. new to docker, but also excited and impressed, what docker makes possible. But … we all know about security, cause of docker-daemon…

---

## [Connecting containers via wifi](https://forums.docker.com/t/connecting-containers-via-wifi/151352)

<div class="topic-metadata">

**Author:** [@itukmakov](https://forums.docker.com/u/itukmakov)\
**Replies:** 4\
**Last updated:** [March 20, 2026, 8:46am UTC](https://forums.docker.com/t/connecting-containers-via-wifi/151352 "2026-03-20T08:46:11Z")

</div>

Hello! I am trying to build a simple network that consists of two docker containers and one router. Router is distributing wi-fi connections: 2.4GHz and 5 GHz frequency. Both containers should be connected to router via…

---

## [I need an ipv6 and a normal ipv4 bridge in the same container](https://forums.docker.com/t/i-need-an-ipv6-and-a-normal-ipv4-bridge-in-the-same-container/151110)

<div class="topic-metadata">

**Author:** [@pattagghiu](https://forums.docker.com/u/pattagghiu)\
**Replies:** 5\
**Last updated:** [February 16, 2026, 9:43pm UTC](https://forums.docker.com/t/i-need-an-ipv6-and-a-normal-ipv4-bridge-in-the-same-container/151110 "2026-02-16T21:43:09Z")

</div>

Hello, new user here. I’m trying to give ipv4 AND ipv6 connectivity to the same container and i’m not getting anywhere :slight\_smile: i tried with a macvlan connection for ipv6 and a bridge interface for ipv4 (where i …

---

## [Almost pulling my hair out trying to figure out docker watch](https://forums.docker.com/t/almost-pulling-my-hair-out-trying-to-figure-out-docker-watch/151061)

<div class="topic-metadata">

**Author:** [@ingenarelneojesus](https://forums.docker.com/u/ingenarelneojesus)\
**Replies:** 3\
**Last updated:** [February 9, 2026, 5:56pm UTC](https://forums.docker.com/t/almost-pulling-my-hair-out-trying-to-figure-out-docker-watch/151061 "2026-02-09T17:56:12Z")

</div>

TLDR: docker compose --watch isn’t mounting the files/dirs first this is one of my services: searxng: container\_name: searxng image: docker.io/searxng/searxng:latest restart: unless-stopped networks: …

---

## [Run custom local MCP server through Docker MCP gateway](https://forums.docker.com/t/run-custom-local-mcp-server-through-docker-mcp-gateway/150999)

<div class="topic-metadata">

**Author:** [@dial647](https://forums.docker.com/u/dial647)\
**Replies:** 1\
**Last updated:** [February 3, 2026, 8:45am UTC](https://forums.docker.com/t/run-custom-local-mcp-server-through-docker-mcp-gateway/150999 "2026-02-03T08:45:22Z")

</div>

I am trying to add a local MCP server which is running off a docker image into the docker mcp gateway and not getting much traction. I am using docker-compose.yml to run the MCP gateway and have added the local MCP serve…

---

## [Local access to Docker containers while running Wireguard with killswitch](https://forums.docker.com/t/local-access-to-docker-containers-while-running-wireguard-with-killswitch/150959)

<div class="topic-metadata">

**Author:** [@dfl808](https://forums.docker.com/u/dfl808)\
**Replies:** 1\
**Last updated:** [February 2, 2026, 12:14pm UTC](https://forums.docker.com/t/local-access-to-docker-containers-while-running-wireguard-with-killswitch/150959 "2026-02-02T12:14:06Z")

</div>

Hi! I am new here, so please let me know if I put this topic in the wrong place or anything of that sort. I also am not a networking expert by any means, so please forgive me if I am using any terminology incorrectly or …

---

## [Debian 12 host crashes when starting "Dive into Ansible" compose project that runs Systemd in containers](https://forums.docker.com/t/debian-12-host-crashes-when-starting-dive-into-ansible-compose-project-that-runs-systemd-in-containers/147073)

<div class="topic-metadata">

**Author:** [@priestapostate](https://forums.docker.com/u/priestapostate)\
**Replies:** 8\
**Last updated:** [January 29, 2026, 6:41pm UTC](https://forums.docker.com/t/debian-12-host-crashes-when-starting-dive-into-ansible-compose-project-that-runs-systemd-in-containers/147073 "2026-01-29T18:41:31Z")

</div>

I’m currently studying Ansible with a Udemy course (“Dive Into Ansible - Beginner to Expert in Ansible - DevOps”) that works with Docker instances; I installed Docker CE and Docker Compose plugin towards that end. Upon …

---

## [Docker Compose incorrectly resolves variables](https://forums.docker.com/t/docker-compose-incorrectly-resolves-variables/150834)

<div class="topic-metadata">

**Author:** [@10takla](https://forums.docker.com/u/10takla)\
**Replies:** 2\
**Last updated:** [January 15, 2026, 6:26pm UTC](https://forums.docker.com/t/docker-compose-incorrectly-resolves-variables/150834 "2026-01-15T18:26:24Z")

</div>

compose.yml (redacted): services: ab: image: alpine tmp/.env: A=1 A1=$A tmp/.env.override: A=2 A1=$A Command: docker compose --env-file=tmp/.env --env-file=tmp/.env.override config --environment Actua…

---

## [On Failure Max Retry Policy In Docker Compose 2](https://forums.docker.com/t/on-failure-max-retry-policy-in-docker-compose-2/123376)

<div class="topic-metadata">

**Author:** [@guzelcihad](https://forums.docker.com/u/guzelcihad)\
**Replies:** 11\
**Last updated:** [January 12, 2026, 6:10pm UTC](https://forums.docker.com/t/on-failure-max-retry-policy-in-docker-compose-2/123376 "2026-01-12T18:10:45Z")

</div>

Hi, I’ve using docker compose 2. I want to set restart policy but don’t want to create loop. For this there is max retry condition. But it seems I can’t use it in version 2. I get error in Intellij when I want to set …

---

## [Failed to get macvlan set up](https://forums.docker.com/t/failed-to-get-macvlan-set-up/150779)

<div class="topic-metadata">

**Author:** [@billmoseley](https://forums.docker.com/u/billmoseley)\
**Replies:** 5\
**Last updated:** [January 7, 2026, 9:31pm UTC](https://forums.docker.com/t/failed-to-get-macvlan-set-up/150779 "2026-01-07T21:31:21Z")

</div>

Docker version 28.2.2, build 28.2.2-0ubuntu1~24.04.1 I’ve been following the steps for macvlan in the documentation, but I fear I must be missing something obvious. I need help debugging this. My goal is to use Compose…

---

## [How can I make docker compose send logs to an in-compose fluent-bit?](https://forums.docker.com/t/how-can-i-make-docker-compose-send-logs-to-an-in-compose-fluent-bit/150706)

<div class="topic-metadata">

**Author:** [@lemuriaph](https://forums.docker.com/u/lemuriaph)\
**Replies:** 3\
**Last updated:** [December 31, 2025, 11:02am UTC](https://forums.docker.com/t/how-can-i-make-docker-compose-send-logs-to-an-in-compose-fluent-bit/150706 "2025-12-31T11:02:11Z")

</div>

Hi there, so while trying to set up a compose for my app, I realized that docker-compose interprets the fluentd-address setting in logging as being the address of a Fluentd/fluent-bit on the host network, not the compose…

---

## [Docker fails to login when using htpasswd with latest registry 3.0](https://forums.docker.com/t/docker-fails-to-login-when-using-htpasswd-with-latest-registry-3-0/150666)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forums.docker.com/u/actionmystique)\
**Replies:** 6\
**Last updated:** [December 26, 2025, 1:51pm UTC](https://forums.docker.com/t/docker-fails-to-login-when-using-htpasswd-with-latest-registry-3-0/150666 "2025-12-26T13:51:42Z")

</div>

docker-ce-cli: 5:29.1.3-1~ubuntu.25.10~questing registry: latest (3.0) Here are the basic steps of my workflow: docker-compose.yml: services: registry: image: 'registry:latest' ports: - "5000:5000" …

---

## [Exclude services from being started with docker-compose using profiles?](https://forums.docker.com/t/exclude-services-from-being-started-with-docker-compose-using-profiles/106076)

<div class="topic-metadata">

**Author:** [@straurob](https://forums.docker.com/u/straurob)\
**Replies:** 3\
**Last updated:** [December 26, 2025, 11:50am UTC](https://forums.docker.com/t/exclude-services-from-being-started-with-docker-compose-using-profiles/106076 "2025-12-26T11:50:39Z")

</div>

My docker-compose.yml defines multiple services which represent the full application stack. In development mode, I’d like to dynamically exclude certain services, so that I can run them from an IDE. As of Docker Compose…

---

## [\`docker compose up -d --force-recreate' always returns "/dev/kfd" not being found](https://forums.docker.com/t/docker-compose-up-d-force-recreate-always-returns-dev-kfd-not-being-found/150635)

<div class="topic-metadata">

**Author:** [@xseagdc](https://forums.docker.com/u/xseagdc)\
**Replies:** 1\
**Last updated:** [December 14, 2025, 9:10pm UTC](https://forums.docker.com/t/docker-compose-up-d-force-recreate-always-returns-dev-kfd-not-being-found/150635 "2025-12-14T21:10:43Z")

</div>

Every time I compose an Immich container on my computer running Devuan with the runit init system and the xanmod LTS kernel, the error below occurs. ROCm will only build on anything other than the stock Devuan kernel, so…

---

## [How to configure ssh client on a container with docker file and compose](https://forums.docker.com/t/how-to-configure-ssh-client-on-a-container-with-docker-file-and-compose/150568)

<div class="topic-metadata">

**Author:** [@brahabd69](https://forums.docker.com/u/brahabd69)\
**Replies:** 10\
**Last updated:** [December 10, 2025, 2:39pm UTC](https://forums.docker.com/t/how-to-configure-ssh-client-on-a-container-with-docker-file-and-compose/150568 "2025-12-10T14:39:03Z")

</div>

Hi, I run an environment with dockerfile and a docker-compose and i want to permit ssh connection thru my container. I have tried many conf but it did’nt work My dockerfile : # Install SSH RUN apk add --no-cache opens…

[Next page](https://forums.docker.com/c/docker-engine/compose/15.md?page=1)
