You sure your setting your ports correctly? BTW the setting should be ports not port in your compose file (as implied by your first post). Also make sure you’ve got the external and internal ports configured if you want to access it via localhost. For example:
ports:
- "5432:5432"
If you’re still having issues, then let’s see that compose file.


















