What is the difference between docker-compose ports vs expose Asked 07 September, 2021 Viewed 2.5K times docker docker-compose 52 Votes 5 Answers What is the difference between ports and expose options in docker-compose.yml docker docker-compose Your reply on this question: Add Reply Cancel 5 Answer Order by Voted Recent Oldest Submit an answer Embed images in Question