Your docker-compose file has no indenting. Look at your post after you submit it.
version: '2'
services:
web:
image: .
container_name: python
ports:
- "5000:5000"
volumes:
- .:/code
depends_on:
- redis_app
redis_app:
image: redis
container_name: redis
Sir I am bit confused this is my actual docker compose file. what do you mean by it does not have any indenting ?
this is the error I am getting.
The latest post of you YAML does have indenting, it didn’t before. That is what I mean.
The error you are getting is that compose is not a command for docker. You should run:
docker-compose up
What does image: .
mean?
version: '2'
services:
web:
build: .
container_name: python
ports:
- "5000:5000"
volumes:
- .:/code
depends_on:
- redis_app
redis_app:
image: redis
container_name: redis
sorry i meant to send this.
I am getting this error nnow
Where is the Dockerfile?
the dockerfile is inside /app
oh ok so the build should be
build: ./app correct ?
Yes the build context is ./app