You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use laravel octane with frankenphp on a server that uses traefik, the flow is the laravel app is in a docker image and then we use nomad with traefik to handle all the traffic/ssl bits.
when I try to deploy our app to our development instance, it appears traefik can't reach our app. I've tried a dozen things and nothing is working.
this is my custom caddyfile I'm using:
{
admin off
auto_https off
frankenphp {
num_threads 100
worker {
file /opt/wt/public/frankenphp-worker.php
num 80
}
}
order php_server before file_server
}
http://:80 {
log {
level WARN
# Redact the authorization query parameter that can be set by Mercure...
format filter {
fields {
uri query {
replace authorization REDACTED
}
}
}
}
root * /opt/wt/public
encode zstd br gzip
php_server {
index frankenphp-worker.php
# Required for the public/storage/ directory...
resolve_root_symlink
}
header -X-Powered-By
}
and this is my dockerfile:
FROM dunglas/frankenphp:1.2-php8.3-bookworm AS base
ENV PHP_INI_SCAN_DIR=":$PHP_INI_DIR/app.conf.d"
COPY docker/conf.d/10-app.ini $PHP_INI_DIR/app.conf.d/
# Download composer binary.
RUN curl -L "https://getcomposer.org/download/latest-stable/composer.phar" -o /usr/local/bin/composer && chmod +x /usr/local/bin/composer
RUN install-php-extensions bcmath igbinary Imagick/imagick@master memcached pcntl pdo_mysql uuid zip
WORKDIR /opt/wt
COPY . .
FROM base AS api-debug
ENV SERVER_NAME=:80
COPY docker/debug.caddyfile /etc/caddy/Caddyfile
RUN install-php-extensions opcache
RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN composer install --no-dev --optimize-autoloader --classmap-authoritative
ENTRYPOINT ["php", "artisan", "octane:frankenphp", "--caddyfile=/etc/caddy/Caddyfile", "--host=", "--admin-port=2019", "--max-requests=1000"]
I'm getting to the point where I may abandon using octane as I've spent a few days trying to get something to work and I'm reaching my limit.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use laravel octane with frankenphp on a server that uses traefik, the flow is the laravel app is in a docker image and then we use nomad with traefik to handle all the traffic/ssl bits.
when I try to deploy our app to our development instance, it appears traefik can't reach our app. I've tried a dozen things and nothing is working.
this is my custom caddyfile I'm using:
and this is my dockerfile:
I'm getting to the point where I may abandon using octane as I've spent a few days trying to get something to work and I'm reaching my limit.
Beta Was this translation helpful? Give feedback.
All reactions