version: '3'
services:
db:
image: postgres
ports:
- "5432"
services:
db:
image: postgres
ports:
- "5433" # ここ
Is the server running on host "サービス名" (172.19.0.4) and accepting TCP/IP connections on port 5433?
という接続エラーがでた。db:
image: postgres
ports:
- "5433"
command: -p 5433 # ここ