Closed adnathanail closed 4 years ago
@adnathanail This documentation is not for Docker experts. Do you really propose show nothing only because it can work without environments and other options in docker-compose file? I think it's not a good idea and such documentation doesn't make sense because doesn't show how to configure services.
I think you can remove some lines (in the first commit) for all use cases of the docker-compose version as the port inside the container doesn't matter outside the container. You just need to bind the container port to a different port outside
If the servers are going to be used from within the docker-compose file you can go a step further and not bind the ports at all as the servers will still be accessible from other services in the same docker-compose file, because the ports were EXPOSE'd in the DockerFile