wernight / docker-codiad

Web-based cloud IDE and code editor with minimal footprint and requirements.
https://hub.docker.com/r/wernight/codiad/
8 stars 4 forks source link

docker-compose #5

Open gerisse opened 7 years ago

gerisse commented 7 years ago

I try to run this docker image with traefik, but without succes i think the problem is cause by the esposed port in your container, 8080, that is also the port used by traefik is it possible to change the port 8080 ? thanks ps :my traefik container works always with ssl ecrynption (Lets'encrypt certificat)

wernight commented 7 years ago

Yes of course. It's standard docker. Same as for any container via -p

On Wed, 4 Oct 2017, 20:53 gerisse, notifications@github.com wrote:

I try to run this docker image with traefik, but without succes i think the problem is cause by the esposed port in your container, 8080, that is also the port used by traefik is it possible to change the port 8080 ? thanks ps :my traefik container works always with ssl ecrynption (Lets'encrypt certificat)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wernight/docker-codiad/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AAI5A3rW9y8NBlp1mfVRvg0FxWGcavu3ks5so9QLgaJpZM4PuEnO .

saytosid commented 4 years ago

You can map it to a different port using:

ports:
  - 1234:8080

Or better, don't bind a port from this image to the host but just expose it and tell traefik to redirecto to the exposed port. This way is more secure as now external connections cannot come to this container directrly