I never remember how Docker’s port forwarding syntax works.
When you write
ports: 1234:5678
5678 is the port the app runs inside Docker and 1234 is the port that you use on the host to access that port inside the container.
From documentation
The short syntax is a colon-separated string to set the host IP, host port, and container port in the form:
[HOST:]CONTAINER[/PROTOCOL]where:
HOSTis[IP:](port | range)(optional). If it is not set, it binds to all network interfaces (0.0.0.0).CONTAINERisport | range.PROTOCOLrestricts ports to a specified protocol eithertcporudp(optional). Default istcp.