Docker-compose with network: host
Hello!
Is it possible to run a docker container from dokploy with access to host's machine network? For example, with docker-compose it is achieved by using
network: host
Configuration from a screenshot doesn't seem to work
7 Replies
Hi,
We support all functionalities, the only one that does not work well is container_name for some reasons, but the rest should work as it does in docker compose.
Oh yes, now I noticed. This works correctly, problem was in my configuration.
Thanks for answer!
@Siumauricio I'm encountering a situation where the
network_mode
seems to be clashing with the networks
layer in the compose file. Any pointers on how to resolve it? The n8n service deployed on Dokploy needs to access a web server running on localhost
remove the domains and edit manually
@Siumauricio The server domain or the service domain?
I mean in order to use the domains with docker compose is required the networks propertie, if your program relies on network mode just remove the domains and add the traefik labels manually
Thanks, worked like a charm