Closed zewas-digital closed 1 day ago
Have found a workaround, if you add the front container to the end of the list of services it works. So I think it's really some kind of timing error.
There also is an error with the DNS-config. My admin container fails to start because it gets a timeout from the DNS server. If I start the project with docker compose up
it works fine.
This is what I find the parser doing: Parsed should be like this (like it is defined):
networks:
default:
name: mailu_default
external: true
noinet:
driver: bridge
internal: true
This it what it parses:
networks:
default: null
noinet: null
b40ssog84008gg4okosocw4k:
name: b40ssog84008gg4okosocw4k
external: true
--> This just used default settings but I think this should not be the case as both are different see above and also this cause the bug (at least I think this is the problem)
@zewas-digital There was a new compose parser released recently with a lot of fixes. Please update to the latest version an try again. Let me know if it is fixed?
There was a new parser release recently. This should fix the problem. Please upgrade to the latest version and if this problem occurs again, please re-open the issue.
Description
I'm trying to set up an mailu instance on Coolify. Therefore I use the Docker Compose Deployment. In my configuration I am referring to an external network I created beforehand. But if I run start the Deployment fails with the error
time="2023-11-13T08:05:07+01:00" level=warning msg="a network with name mailu_default exists but was not created by compose. Set 'external: true' to use an existing network" network mailu_default was found but has incorrect label com.docker.compose.network set to ""
, even tough I define the network as external.Strangely the deployment works if I remove the network
default
from the front container, it's reference in other containers doesn't throw the error.What could be the reason for it? Is the front container started before the network is referenced?
Minimal Reproduction (if possible, example repository)
Start with this compose file:
Environment Variables:
Then remove the network
default
on the front container and try again. It should work now.Exception or Error
time="2023-11-13T08:05:07+01:00" level=warning msg="a network with name mailu_default exists but was not created by compose.\nSet 'external: true' to use an existing network" network mailu_default was found but has incorrect label com.docker.compose.network set to ""
Version
v4.0.0-beta.123