D
Dokploy12mo ago
Kirill

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
No description
7 Replies
Siumauricio
Siumauricio12mo ago
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.
Kirill
KirillOP12mo ago
Oh yes, now I noticed. This works correctly, problem was in my configuration. Thanks for answer!
Gabe Vigodi
Gabe Vigodi7mo ago
@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
No description
Siumauricio
Siumauricio7mo ago
remove the domains and edit manually
Gabe Vigodi
Gabe Vigodi7mo ago
@Siumauricio The server domain or the service domain?
Siumauricio
Siumauricio7mo ago
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
Gabe Vigodi
Gabe Vigodi7mo ago
Thanks, worked like a charm

Did you find this page helpful?