What happened?
Hi there,
I'm trying to get a pretty standard Laravel app deployed on a Render web service instance.
Here's my Dockerfile:
FROM dunglas/frankenphp
RUN install-php-extensions \
pdo \
gd \
intl \
zip \
opcache
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY . /app
RUN composer install --no-interaction --no-scripts --no-suggest
RUN php artisan config:cache
RUN php artisan route:cache
RUN php artisan migrate --force
# Line below needed otherwise build exits with a permissions error
RUN setcap -r /usr/local/bin/frankenphp
Locally, if I run (from the docs):
docker run -p 80:80 -p 443:443 -p 443:443/udp -v $PWD:/app dunglas/frankenphp
Everything works as expected.
On Render, when I deploy everything seems to build and start correctly, I even get the default Laravel uptime endpoint (/up) returning something positive as the healthcheck passes, however if I try to visit the site in a browser I get the "TOO MANY REDIRECTS" error.
I've tried clearing my cookies, different browsers and tweaking the ports exposed but nothing seems to help. I don't really have anything special set up in the environment as shown below:
I think the issue might be something to do with the default port binding and/or proxying from HTTPS -> HTTP but I don't know enough about this to get it working.
Any ideas welcomed! Thanks in advance
Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Unchanged from Docker image
Relevant log output
No response
What happened?
Hi there,
I'm trying to get a pretty standard Laravel app deployed on a Render web service instance.
Here's my Dockerfile:
Locally, if I run (from the docs):
docker run -p 80:80 -p 443:443 -p 443:443/udp -v $PWD:/app dunglas/frankenphpEverything works as expected.
On Render, when I deploy everything seems to build and start correctly, I even get the default Laravel uptime endpoint (
/up) returning something positive as the healthcheck passes, however if I try to visit the site in a browser I get the "TOO MANY REDIRECTS" error.I've tried clearing my cookies, different browsers and tweaking the ports exposed but nothing seems to help. I don't really have anything special set up in the environment as shown below:
I think the issue might be something to do with the default port binding and/or proxying from HTTPS -> HTTP but I don't know enough about this to get it working.
Any ideas welcomed! Thanks in advance
Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
No response