fix: works with latest debian-based self-hosted image from vendor #9
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-recipe"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
This PR aims to get InvoiceNinja working again, I've followed their self-hosting new Debian-based image compose file super-closely to get it working.
Issues
It's working really well, but anytime I restart the container or restart my server, it starts erroring.
The first error is Nginx 502 Bad gateway, and when I look at the Nginx logs this is what I see:
Then the
appshows the following error, which I believe to be the culprit itself, but no clue how to resolve it:I have checked the compose file over a dozen times, and ensured the
DB_HOST& container name match to the valuedb, at this stage I have no idea why it does that, and if I undeploy & re-deploy the app via Abra, then it works 🤷@ -5,2 +5,3 @@SECRET_API_SECRET_VERSION=v1# Run this anywhere to generate a key:# `docker run --rm -it invoiceninja/invoiceninja-debian php artisan key:generate --show`This will be moved to the README later once I fix the current issue
@ -1 +1,4 @@export NGINX_CONF_VERSION=v1export NGINX_LARAVEL_CONF_VERSION=v1export NGINX_INVOICENINJA_CONF_VERSION=v2Will also reset this to
v1@ -27,3 +29,3 @@- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"- coop-cloud.${STACK_NAME}.web.version=1.20.0-c1e6c074- coop-cloud.${STACK_NAME}.web.version=xx # @TODO fix meThis also needs to be fixed
@ -58,0 +84,4 @@- nordigen_keydeploy:labels:- "coop-cloud.${STACK_NAME}.app=true" # Abra won't let me NOT have labels for 'app'?This one is weird... do I need to keep it? I kept getting a linting error from Abra without it 🤷
@ -62,2 +99,3 @@db:image: "mariadb:10.6"image: mariadb:12I know the guide says to use
mysqlbut I saw that we usemariadbas a drop-in replacement and that works fine for other apps👌View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.