HI DOAP, building a small that needs a web service (Node.js) and a worker Docker container. The Node.js service needs to access the worker container. I'm struggling to find documentation about this, try to add workers to my app spec but doesn't work, please help, here is my deploy config: https://github.com/phuctm97/img-node/blob/master/.do/deploy.template.yaml
Workers cannot be accessed by a service internally or externally. A possible solution is to have your worker reach out for work to do from your service. You can use your service name as a DNS record to make accessing your service easier and faster.
For example, if my service is called app I can access it from my worker using http://app.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
HI DOAP, building a small that needs a web service (Node.js) and a worker Docker container. The Node.js service needs to access the worker container. I'm struggling to find documentation about this, try to add
workers
to my app spec but doesn't work, please help, here is my deploy config:https://github.com/phuctm97/img-node/blob/master/.do/deploy.template.yaml
👋 Minh-Phuc
Workers cannot be accessed by a service internally or externally. A possible solution is to have your worker reach out for work to do from your service. You can use your service name as a DNS record to make accessing your service easier and faster.
For example, if my service is called
app
I can access it from my worker usinghttp://app
.