I'm having problems with deploying my Django Application to Azure App-services. I'm getting the error when checking the logs:
didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.
I've followed the instructions as stated here to resolve the problem, but still no luck: https://docs.microsoft.com/en-gb/archive/blogs/waws/things-you-should-know-web-apps-and-linux#NoPing
This is my set-up
I have this in my Dockerfile:
EXPOSE 80
EXPOSE 8000
This is my dockercompose.yml
version: '3'
services:
web:
build: .
command: bash -c "python projectile/manage.py makemigrations && python projectile/manage.py migrate && python projectile/manage.py runserver 0.0.0.0:8000"
container_name: image_service
volumes:
- .:/image_service
ports:
- "80"
- "8000"
I have these settings in the App Service Config in the portal
WEBSITES_PORT 8000
PORT 80
What's wrong here? Would be awesome if someone could help. me out.
You're trying to Build your container in App Service., this is unsupported. Deploy your image in a registry like Docker Hub or Azure Container Registry.
Unsupported options
- build (not allowed)
- depends_on (ignored)
- networks (ignored)
- secrets (ignored)
- ports other than 80 and 8080 (ignored)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.