---
version: '3'
services:
app:
networks:
- mail_default
extra_hosts:
- mail.hogehoge.com:192.168.0.2
networks:
mail_default:
external: true
===== コンテナのIP確認方法 =====
# docker inspect mail | grep IPAddress
"SecondaryIPAddresses": null,
"IPAddress": "",
"IPAddress": "192.168.0.2",
{{tag>日記 docker}}