Difference between revisions of "Expose:"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
  https://docs.docker.com/compose/compose-file/compose-file-v3/#expose
 
  https://docs.docker.com/compose/compose-file/compose-file-v3/#expose
  
 
+
Expose ports without publishing them to the host machine - they'll only be accessible to linked services. Only the internal port can be specified.
  
 
* [[EXPOSE]]
 
* [[EXPOSE]]
 
* [[ports:]]
 
* [[ports:]]
  
{{docker-compose.yml}}
+
[[networks:]]
{{docker-compose}}
+
 
 +
== See also ==
 +
* {{docker-compose.yml}}
 +
* {{docker-compose}}

Latest revision as of 09:41, 21 April 2024

Advertising: