我创建了我的docker-compose文件,附加了3个dockerfile。一切正常,但目前我想暴露在外部端口8000.
这没有发生。主人无法访问:( 这有什么问题?
version: '3'
services:
elastic:
build: ./elastic
ports:
- 5500:80
tty: true
networks:
- default
api:
build: ./api
ports:
- 5000:80
depends_on:
- elastic
tty: true
networks:
- default
web:
build: ./web
ports:
- 8000:80
depends_on:
- api
tty: true
networks:
- outside
- default
networks:
outside:
external:
name: docker_gwbridge