Difference between revisions of "Docker compose: networks"
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
https://docs.docker.com/compose/compose-file/#network-configuration-reference
networks: elastic: driver: bridge
Examples[edit]
Official:
services: proxy: image: example/proxy networks: - outside - default app: image: example/app networks: - default networks: outside: external: true
Related terms[edit]
--link
deprecated option
ports: (Docker compose)
Related terms[edit]
--network=host
See also[edit]
docker network [ ls | inspect
|create
|prune
], --networkdocker-compose
,docker-compose.yml
: [services
|volumes
|networks
|up
|down
|restart
|logs
|create
|changelog
|version
|secrets
|config
|-v
|-h
|exec], docker-compose pull
,Environment:
, Docker-compose.yml examples,.env
, release notes, expose:, docker-compose --env-file,services.deploy.resources
Advertising: