Difference between revisions of "Docker compose: networks"

From wikieduonline
Jump to navigation Jump to search
(Created page with "https://docs.docker.com/compose/compose-file/#network-configuration-reference == See also == * {{docker-compose}}")
 
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
https://docs.docker.com/compose/compose-file/#network-configuration-reference
 
https://docs.docker.com/compose/compose-file/#network-configuration-reference
 +
* https://docs.docker.com/network/
  
 +
 +
 +
 +
[[networks:]]
 +
  elastic:
 +
    [[Docker compose: driver:|driver:]] [[bridge]]
 +
 +
 +
== Examples ==
 +
* [[ElasticSearch docker-compose example]]
 +
 +
Official:
 +
<pre>
 +
services:
 +
  proxy:
 +
    image: example/proxy
 +
    networks:
 +
      - outside
 +
      - default
 +
  app:
 +
    image: example/app
 +
    networks:
 +
      - default
 +
 +
networks:
 +
  outside:
 +
    external: true
 +
</pre>
 +
 +
== Related terms ==
 +
* <code>[[--link]]</code> deprecated option
 +
[[ports: (Docker compose)]]
 +
 +
[[Category:Docker compose]]
 +
 +
== Related terms ==
 +
* <code>[[docker network ls]]</code>
 +
* <code>[[docker network inspect]]</code>
 +
* <code>[[docker network create]]</code>
 +
[[--network=host]]
  
 
== See also ==
 
== See also ==
 +
* {{docker network}}
 
* {{docker-compose}}
 
* {{docker-compose}}
 +
 +
 +
[[Category:Docker compose]]

Latest revision as of 09:49, 21 April 2024

Advertising: