Frontend like client side javascript? The internal DNS server will not resolve that for your web browser. Please, read my post here as well, if I was right:
Also
It does not seem to be right either. You can either define a list of env variables using the equals sign or a mapping of key value pairs. What you defined is a string, but I’m surprised it allowed to start the project. Maybe compose supports a string syntax as well? Never tried and never read it in documentation. So valid ways:
environment:
- PORT=3001
or
environment:
PORT: 3001