templates
templates copied to clipboard
Error: Conflicting options: port publishing and the container type network mode with IntelliJ
I encountered an error with port publishing and the container type network mode while using IntelliJ. It seems to be related to the network mode setting.
Error: conflicting options: port publishing and the container type network mode
The issue seems to occur due to the network mode configuration in the docker-compose.yml. Specifically, in javascript-node-postgres and simalar.
The error is resolved if the network_mode setting is switched between app and db services. For instance, instead of using network_mode: service:db within the app, using network_mode: service:app within db resolves the error.
References:
[YouTrack Issue](https://youtrack.jetbrains.com/issue/IJPL-65932/Devcontainers-Error-response-from-daemon-conflicting-options-port-publishing-and-the-container-type-network-mode)