services:
db:
environment:
POSTGRES_PASSWORD: mysecretpassword
image: postgres
wordpress:
image: wordpress
links:
- db
ports:
- 8085:80
version: '3.0'
Check:
You need to delete “dot” in the docker-compose command.
Some people make mistakes because when open hint they see ‘dot’ at the end of commands.