mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-02-07 06:29:22 +01:00
19
debian/Dockerfile
vendored
19
debian/Dockerfile
vendored
@@ -4,17 +4,14 @@ RUN curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/lat
|
|||||||
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | \
|
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | \
|
||||||
cut -d '"' -f 4 | \
|
cut -d '"' -f 4 | \
|
||||||
xargs curl -sL | \
|
xargs curl -sL | \
|
||||||
tar -xz
|
tar -xz \
|
||||||
|
&& ln -s ./resources/views/react/index.blade.php ./public/index.html \
|
||||||
RUN 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 . \
|
||||||
# Set permissions: directories 755, files 644
|
# Symlink
|
||||||
RUN chmod -R a=r,u+w,a+X .
|
&& php artisan storage:link \
|
||||||
|
# Octane
|
||||||
RUN php artisan storage:link
|
&& php artisan octane:install --server=frankenphp
|
||||||
|
|
||||||
# Octane
|
|
||||||
RUN php artisan octane:install --server=frankenphp
|
|
||||||
|
|
||||||
# ==================
|
# ==================
|
||||||
# InvoiceNinja image
|
# InvoiceNinja image
|
||||||
|
|||||||
15
debian/docker-compose.yml
vendored
15
debian/docker-compose.yml
vendored
@@ -12,6 +12,7 @@ x-app-volumes: &volumes
|
|||||||
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-php.ini:ro
|
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-php.ini:ro
|
||||||
- app_cache:/var/www/html/bootstrap/cache
|
- app_cache:/var/www/html/bootstrap/cache
|
||||||
- app_storage:/app/storage
|
- app_storage:/app/storage
|
||||||
|
- caddy_data:/data
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
@@ -20,9 +21,12 @@ services:
|
|||||||
image: invoiceninja/invoiceninja-debian:${TAG:-latest}
|
image: invoiceninja/invoiceninja-debian:${TAG:-latest}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# php artisan help octane:frankenphp
|
# 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:
|
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_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
environment:
|
environment:
|
||||||
@@ -135,14 +139,9 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
app_cache:
|
app_cache:
|
||||||
driver: local
|
|
||||||
app_storage:
|
app_storage:
|
||||||
driver: local
|
caddy_data:
|
||||||
mysql_data:
|
mysql_data:
|
||||||
driver: local
|
|
||||||
redis_data:
|
redis_data:
|
||||||
driver: local
|
|
||||||
# mariadb:
|
# mariadb:
|
||||||
# driver: local
|
|
||||||
# valkey:
|
# valkey:
|
||||||
# driver: local
|
|
||||||
|
|||||||
Reference in New Issue
Block a user