您现在的位置是:挑肥拣瘦网 > 热点
云计算核心技术Docker教程:docker-compose指定自定义网络
挑肥拣瘦网2026-11-14【热点】{固定数字1}人已围观
简介谷歌搜索留痕【tg:seogoogle987】
docker-compose不仅可以使用默认的应用程序网络,还可以使用顶级networks密钥指定自己的网络。这使您可以创建更复杂的拓扑并指定自定义网络驱动程序和选项。您还可以使用它将服务连接到不受Compose管理的外部创建的网络。
每个服务都可以使用服务级云计别 networks密钥指定要连接的网络,该服务级别密钥是引用顶级 networks密钥下条目的名称的列表。
这是一个示例Compose文件,定义了两个自定义网络。该proxy服务与该服务是隔离的db,因为它们不共享公共网络-只能app与两者通信。
version: "3"
s算核ervices:
proxy:
build: ./proxy
心技 networks:
- frontend
app:
&术Dnbsp; build: ./app
networks:
&nbocsp; - frontend
- backend
db:
&kenbsp; image: postgres
networks:
r教 - backend
networks:
frontend:
# Use a custom程: driver
driver: custom-driver-1
backend:
&nbdosp; # Use a custom driver which takes special options
driver: custom-driver-2
&nbcksp; driver_opts:
foo: "1"
&nbserp; bar: "2"
通过为每个连接的网络设置ipv4_address和/或ipv6_address,可以为网络配置静态IP地址。
也可以为网络指定一个自定义名称(从3.5版开始):
version: "3.5"
networks:
&-cnbsp; frontend:
name: custom_frontend
&omnbsp; driver: custom-driver-1
很赞哦!(027817)
相关文章
热门文章
站长推荐
友情链接
- 标签: 康师傅
- https://www.teacherspayteachers.com/Browse/Search:谷歌搜索留痕【tg:seogoogle987】,TsF
- https://www.kyuhoshi.com/?s=谷歌搜索留痕【tg:seogoogle987】,kI8
- https://www.scivee.tv/?s=谷歌搜索留痕【tg:seogoogle987】,cjw
- https://www.welshmountainzoo.org/shop/index.php?routeproduct/search&tag=谷歌搜索留痕【tg:seogoogle987】,kOo
- https://www.remit.co.jp/vi/?s=谷歌搜索留痕【tg:seogoogle987】SZR
- https://www.seforall.org/search?keywords=谷歌搜索留痕【tg:seogoogle987】,hTl
- https://www.livehindustan.com/tags/谷歌搜索留痕【tg:seogoogle987】,Tr7
- https://www.stonerealestate.com.au/?cat=100&s=谷歌搜索留痕【tg:seogoogle987】,YG2
- https://www.mygrandma.com/Items.aspx?search=谷歌搜索留痕【tg:seogoogle987】,lsI
- https://nicolazzi.it/en/?s=谷歌搜索留痕【tg:seogoogle987】,387
- https://www.wellbees.com/index.php/catalogsearch/result/index/?q=谷歌搜索留痕【tg:seogoogle987】,SzK
- https://www.oikos-tecnics.com/?s=谷歌搜索留痕【tg:seogoogle987】,mYE
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌搜索留痕【tg:seogoogle987】U93
- https://www.lssystems.co.uk/search?page=0&per_page=24&term=谷歌搜索留痕【tg:seogoogle987】,0Lq
- https://www.whatsonstage.com/search?cat=64&term=谷歌搜索留痕【tg:seogoogle987】,dCD
- https://wwwcp.umes.edu/search/谷歌搜索留痕【tg:seogoogle987】,i8b
- https://www.lgnewsroom.com/search/谷歌搜索留痕【tg:seogoogle987】,hex
- https://www.tullygroup.us/?ID=hbkq8jFjrQlVRrwzEmvoUJJAY4e1Lfo5&s=谷歌搜索留痕【tg:seogoogle987】,OwD
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌搜索留痕【tg:seogoogle987】,ZS2
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌搜索留痕【tg:seogoogle987】E4I
- https://www.seagrant.wisc.edu/?page=63&s=谷歌搜索留痕【tg:seogoogle987】,A3q
- https://www.goodreads.com/quotes/tag/谷歌搜索留痕【tg:seogoogle987】RJR
- https://www.zutari.com/?s=谷歌搜索留痕【tg:seogoogle987】,WTG
- https://www.sweat.com/collections/vendors?q=谷歌搜索留痕【tg:seogoogle987】,rU7
- https://www.nbm.org/?action=QUERY&s=谷歌搜索留痕【tg:seogoogle987】,mJu
- https://www.roberthalf.com/us/en/jobs/all/谷歌搜索留痕【tg:seogoogle987】5yr
- https://www.lindseymedicalsupply.com/search/谷歌搜索留痕【tg:seogoogle987】,jEs
- https://5gaa.org/?token=6e2l7hjt2i26gzgctgwdrv7v0j6nxorq&s=谷歌搜索留痕【tg:seogoogle987】ubq
- https://www.lauben.com/en/?action=SEARCH&s=谷歌搜索留痕【tg:seogoogle987】,iIw
- https://www.military-history.org/?s=谷歌搜索留痕【tg:seogoogle987】,lGR
- https://www.world-architects.com/en/search?term=谷歌搜索留痕【tg:seogoogle987】,4fx
- https://zhidao.baidu.com/index/?action=QUERY&word=谷歌搜索留痕【tg:seogoogle987】,vtI
- https://www.mesec.cz/vyhledavani/?qs=谷歌搜索留痕【tg:seogoogle987】,FEg
- https://www.wilsonart.com/catalogsearch/result/?action=CHECK&q=谷歌搜索留痕【tg:seogoogle987】,wII
- https://www.ncetm.org.uk/search?action=CHECK&q=谷歌搜索留痕【tg:seogoogle987】,lYn
- https://www.totolink.vn/search/谷歌搜索留痕【tg:seogoogle987】,rLw
- https://www.umc.edu/search.aspx?ID=I4gnDKRS991MFcIDDzoYze4aWSAszAm7&q=谷歌搜索留痕【tg:seogoogle987】,mGF
- https://m.shoppinghow.kakao.com/m/search/q/谷歌搜索留痕【tg:seogoogle987】vfD
- https://www.whiterock2008.com.tw/search?q=谷歌搜索留痕【tg:seogoogle987】,cvJ
- https://www.kores.com/?s=谷歌搜索留痕【tg:seogoogle987】,JhN
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=谷歌搜索留痕【tg:seogoogle987】,NJ6
- https://www.kelsa.co.uk/catalogsearch/result/index/?T=1686132119291&q=谷歌搜索留痕【tg:seogoogle987】,Fu1
- https://xn--lgernevedlystskoven-lxb.dk/search/谷歌搜索留痕【tg:seogoogle987】,ile
- https://yscc1986.net/search/谷歌搜索留痕【tg:seogoogle987】nOF
- https://www.universal-music.co.jp/search/?q=谷歌搜索留痕【tg:seogoogle987】,g8I
- https://www.synonyms.com/antonyms/谷歌搜索留痕【tg:seogoogle987】,QlP
- https://www.sbaad.no/search/谷歌搜索留痕【tg:seogoogle987】,P10
- https://www.rollingstone.it/?ID=DVMeu3AlmzZE1cuJ2FmgmO5TSCQRb3yh&s=谷歌搜索留痕【tg:seogoogle987】,7KR
- https://www.msrenewal.com/search/谷歌搜索留痕【tg:seogoogle987】,mG8
- https://www.ushmm.org/search/results/?ID=8s0587Oi8UTv74zPPM4fuhwjNpe2hsEE&q=谷歌搜索留痕【tg:seogoogle987】,QMr







