mirror of https://github.com/docker/docs.git
Fixed networks identation issues (#2989)
This commit is contained in:
parent
eab7678f3e
commit
a6ee7cfefe
|
@ -97,16 +97,16 @@ Here's an example Compose file defining two custom networks. The `proxy` service
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
# Use a custom driver
|
# Use a custom driver
|
||||||
driver: custom-driver-1
|
driver: custom-driver-1
|
||||||
backend:
|
backend:
|
||||||
# Use a custom driver which takes special options
|
# Use a custom driver which takes special options
|
||||||
driver: custom-driver-2
|
driver: custom-driver-2
|
||||||
driver_opts:
|
driver_opts:
|
||||||
foo: "1"
|
foo: "1"
|
||||||
bar: "2"
|
bar: "2"
|
||||||
|
|
||||||
Networks can be configured with static IP addresses by setting the [ipv4_address and/or ipv6_address](compose-file.md#ipv4-address-ipv6-address) for each attached network.
|
Networks can be configured with static IP addresses by setting the [ipv4_address and/or ipv6_address](compose-file.md#ipv4-address-ipv6-address) for each attached network.
|
||||||
|
|
||||||
|
@ -129,8 +129,8 @@ Instead of (or as well as) specifying your own networks, you can also change the
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
# Use a custom driver
|
# Use a custom driver
|
||||||
driver: custom-driver-1
|
driver: custom-driver-1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue