독립 컨테이너에서 웹과 데이터 컨테이너로 분리하는 방법(Move from standalone container to separate web and data containers)에 비밀번호 설정에 대한 설명이 있을 것 같습니다.
또한, postgres 포트는 127.0.0.1에만 바인딩할 수 있다고 생각합니다.
expose:
- "80:80"
- "443:443"
- "127.0.0.1:5432:5432"
독립 컨테이너에서 웹과 데이터 컨테이너로 분리하는 방법(Move from standalone container to separate web and data containers)에 비밀번호 설정에 대한 설명이 있을 것 같습니다.
또한, postgres 포트는 127.0.0.1에만 바인딩할 수 있다고 생각합니다.
expose:
- "80:80"
- "443:443"
- "127.0.0.1:5432:5432"