DEV Community

loading...

Discussion on: Help Thread — DigitalOcean App Platform Hackathon on DEV

Collapse
phuctm97 profile image
Minh-Phuc Tran

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

Collapse
jonfriesen profile image
Jon Friesen

👋 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 using http://app.