I am getting the below exception while running docker-compose up. I am using docker-compose version 1.9.0 and the version is: ‘2.0’. Can someone please help me.
#docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.show: 'dockerfile'
services.show.build contains an invalid type, it should be a string, or an object
services.movies.build contains unsupported option: 'networks'
Docker Compose yml file
version: '2.0'
services:
movies:
build:
context: .
dockerfile: Dockerfile-movies
networks:
- blockmyshownet
ports:
- "5001:5001"
volumes:
- movie_vol:/code
show:
build:
context: .
dockerfile: Dockerfile-show
networks:
- blockmyshownet
ports:
- "5002:5002"
volumes:
- movie_vol:/code
volumes:
movie_vol:
networks:
blockmyshownet:
driver: bridge