Question

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

I am attempting to set up https://hub.docker.com/_/nats 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://0.0.0.0:6222

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.

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04

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

Best,

Bobby