Skip to content
Advertisement

Error building my web application using Docker

I am a newbie using Docker, I have completed my web application in Django, and I want to containerize it using Docker. I have gone through a particular tutorial where an existing web application was dockerized successfully but when I tried the same method, I got an error which says Failed to execute script docker-compose

error logs

JavaScript

Dockerfile

JavaScript

docker-compose.yml

JavaScript

Advertisement

Answer

I was able to solve the issu by removing the second line of the code and restructuring my code to look like this:

Dockefile

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement