Error when trying to run the docker compose

When I run the command docker-compose -f docker-compose.yml up my container starts normally.

In IntelliJ it appears the button to execute the container when the file docker-compose.yml is opened, When I try to upload the container directly through the * .yml file I get the error below:

Failed to deploy 'Compose: docker-compose': Sorry but parent: com.intellij.execution.impl.ConsoleViewImpl[,0,0,1188x368,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] has already been disposed (see the cause for stacktrace) so the child: [email protected] will never be disposed. 

My docker-compose.yml file:

version: 3.4
        container_name: logistics-service
        build: ./docker
            - "8080:8080"

Source: Docker Questions