botpress / solutions

List of Botpress templates / examples for common problems. Kick start your chatbot development with these ready-to-go custom modules, actions, hooks, and tools!
https://botpress.com
56 stars 25 forks source link

Add default networkmode: 'host' to image baker buildImage.config.js #48

Closed JustusNBB closed 2 years ago

JustusNBB commented 2 years ago

As recommended by @davidvitora, proposing this as a contribution to my latest findings

# Baker compose
extra_hosts:
      - ${HOST_NAME_BOTPRESS_CMS}:host-gateway

In conjunction with this host-gateway mapping, the custom image builder "baker" tool works dockerized on developers workstations, this networking config enables it to reach local Botpress deployments.

Maybe I should also add a full compose file as an example?