By Roger Kerse
We are using DigitalOcean’s App Platform. So far our Dockerfile started NodeJS server which worked. Now we added Nginx in the Dockerfile as the first responder to proxy our Rust and old NodeJS server. It works perfectly on every machine we have tried on, but not on DigitalOcean’s App Platform. There simple
const app = express() app.listen(8084, () => …) just dones’t work.
Is this some kind of … limitation of the platform?
We have exposed only one port 8081 for Nginx. Internally Rust runs on 8085 and NodeJS should run on 8084.
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!
Hi Roger
App Platform can only expose 1 port to the outside world which needs to run HTTP traffic.
However, internal ports can be added to the app spec. Your rust port could be run on 8085 and accessed by the components locally. Here’s documentation on internal services.
If both services need to be accessed publicly then they should be separated into distinct components.
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.