Compare commits

..

3 Commits

Author SHA1 Message Date
David Bomba
260980f2a3 Merge pull request #685 from benbrummer/frankenphp
https for octane
2025-01-08 13:47:46 +11:00
Benjamin Brummer
57724b7d93 Single RUN for first stage to avoid insane build times 2025-01-07 11:51:09 +00:00
Benjamin Brummer
39b6680f0b added example command for https and caddy_data volume for persistent certificates 2025-01-07 10:04:24 +00:00
2 changed files with 15 additions and 19 deletions

19
debian/Dockerfile vendored
View File

@@ -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

View File

@@ -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:
@@ -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:
@@ -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