Lead Dev at Adfinitas
Hello,
I was wondering if we could deploy multiple microservices as “workers” and one API-gateway as “service”.
Thanks,
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hello, “internal services” are possible using internal_ports property in the app spec and without http_port property.
name: sample-golang
services:
- name: intsvc1
github:
repo: digitalocean/sample-golang
branch: master
internal_ports:
- 3000
The internal service should be addressable with just the component name.
This comment has been deleted
Does it still work? I’ve got the following error while validating my app spec using doctl command line tool:
❯ doctl apps spec validate .do/app.yaml -v
Error: Failed to parse app spec: json: unknown field "internal_ports"
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.