2024-07-11, 10:18 PM
(This post was last modified: 2024-07-11, 10:19 PM by TheDreadPirate. Edited 2 times in total.)
Try adding this to the compose.
Edit: Accidentally clicked on "mark as solution" instead of edit.
Meant to add that the code block isn't giving "network_mode" the correct indent. Should be the same as devices and ports. If you do use host networking, comment out the two lines for ports since they are no longer needed.
Code:
network_mode: 'host'
extra_hosts:
- 'host.docker.internal:host-gateway'
Edit: Accidentally clicked on "mark as solution" instead of edit.
Meant to add that the code block isn't giving "network_mode" the correct indent. Should be the same as devices and ports. If you do use host networking, comment out the two lines for ports since they are no longer needed.