Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
したがって、マシンのインターフェイスに公開する必要がある 3 つのポートがあります。Dockerコンテナでこれを行うことは可能ですか?
docker-compose.ymlファイルを使用する場合:
docker-compose.yml
services: varnish: ports: - 80 - 6081
ホスト/ネットワーク ポートを次のように指定することもできます。HOST/NETWORK_PORT:CONTAINER_PORT
HOST/NETWORK_PORT:CONTAINER_PORT
varnish: ports: - 81:80 - 6081:6081