I have the following docker-compose.yml
file:
version: '3'
services:
proxy-nginx:
build:./nginx
ports:
- 80:80
When I run `docker-compose up the console logs:
In file './docker-compose.yml', service 'proxy-nginx' must be a mapping not a string.
This answer suggests using quotes around the ports:
version: '3'
services:
proxy-nginx:
build:./nginx
ports:
- "80:80"
Also tried indenting ports more:
version: '3'
services:
proxy-nginx:
build:./nginx
ports:
- 80:80
But the result is still the same. Any ideas?