How can I set up Digital Ocean Apps with custom Docker Arguments?

I am attempting to set up with the following commands:

docker network create nats

docker run --name nats --network nats --rm -p 4222:4222 -p 8222:8222 nats --http_port 8222 --cluster_name NATS --cluster nats://

How can I do this via DO apps? It seems to force me to use the default run configuration only.

Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
November 6, 2022

Hi there,

I believe that it is currently not possible to expose multiple external ports on a Service.

For your use case I believe that a better fit would be to use a Droplet and install Docker on there.

That way you will have full control over which ports are being exposed.