I’m trying to understand why my healthchecks are failing, and frankly it could be any number of issues, but I can’t even understand how I can properly troubleshoot this.
I’m using the App Platform service, and have configured a very basic Dockerfile to spin up a wordpress site.
The build seems to succeed without issue, but the health check fails without giving an error or even sharing what the response was.
Any tips on what might be happening would be great, or tips on how to get further with troubleshooting with this service.
FROM wordpress
COPY wp-content/plugins/ /var/www/html/wp-content/plugins/
COPY wp-content/themes/ /var/www/html/wp-content/themes/
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
EXPOSE 8080
Side note: Running the docker run command locally seems to work fine, and exposes port 8080 as I would expect.
docker run --name some-wordpress -p 8080:80 -d wordpress
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
In your
apache2.conf
is the listen port set to 80 or 8080?The Docker run command that you’ve shared indicates that the Apache listen port is 80, if this is indeed the case, you will have to change the
EXPOSE
port from8080
to80
and it should work as normal.Let me know how it goes!
Best,
Bobby