Skip to content

Commit

Permalink
Merge pull request #685 from benbrummer/frankenphp
Browse files Browse the repository at this point in the history
https for octane
  • Loading branch information
turbo124 authored Jan 8, 2025
2 parents 768df3c + 57724b7 commit 260980f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
19 changes: 8 additions & 11 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ RUN curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/lat
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | \
cut -d '"' -f 4 | \
xargs curl -sL | \
tar -xz

RUN ln -s ./resources/views/react/index.blade.php ./public/index.html

# Set permissions: directories 755, files 644
RUN chmod -R a=r,u+w,a+X .

RUN php artisan storage:link

# Octane
RUN php artisan octane:install --server=frankenphp
tar -xz \
&& ln -s ./resources/views/react/index.blade.php ./public/index.html \
# Set permissions: directories 755, files 644
&& chmod -R a=r,u+w,a+X . \
# Symlink
&& php artisan storage:link \
# Octane
&& php artisan octane:install --server=frankenphp

# ==================
# InvoiceNinja image
Expand Down
15 changes: 7 additions & 8 deletions debian/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ x-app-volumes: &volumes
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-php.ini:ro
- app_cache:/var/www/html/bootstrap/cache
- app_storage:/app/storage
- caddy_data:/data

services:
app:
Expand All @@ -20,9 +21,12 @@ services:
image: invoiceninja/invoiceninja-debian:${TAG:-latest}
restart: unless-stopped
# php artisan help octane:frankenphp
command: --log-level=info
command: --port=80 --workers=2 --log-level=info
# command: --host=example.com --port=443 --workers=2 --https --http-redirect --log-level=info
ports:
- "80:8000"
- "80:80" # HTTP
# - "443:443" # HTTPS
# - "443:443/udp" # HTTP/3, causes an error for pdf preview H3_GENERAL_PROTOCOL_ERROR
env_file:
- ./.env
environment:
Expand Down Expand Up @@ -135,14 +139,9 @@ services:

volumes:
app_cache:
driver: local
app_storage:
driver: local
caddy_data:
mysql_data:
driver: local
redis_data:
driver: local
# mariadb:
# driver: local
# valkey:
# driver: local

0 comments on commit 260980f

Please sign in to comment.