Installation with docker-compose don't run

Hello everyone!

I have an instance of Invoice Ninja installed on my server. I referred completely to the instructions in the Github repo. It also works so far. The problem I have is that I can’t choose any other language than 5. But I would like to choose Germany. The language is in the database. Likewise, there is no euro in the currency even though the entry is in the database.

The Database is in another container. Invoice Ninja create the needed Tables on the Database Server.

Furthermore, I cannot assign an invoice to any customer. When I create an invoice and enter a customer, it disappears from the field… Does anyone have any idea what that can be?

Thank you!

version: ‘3.7’

image: nginx:latest
restart: always
env_file: env
  # Vhost configuration
  #- ./config/caddy/Caddyfile:/etc/caddy/Caddyfiledocker-com
  - ./config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro
  - ./docker/app/public:/var/www/app/public:ro
  - app
# Run webserver nginx on port 80
# Feel free to modify depending what port is already occupied
  - invoiceninja
  - mdb
  - traefik
  - "in5.localhost: " #host and ip
  - "traefik.enable=true"
  - "traefik.http.routers.invoice.entrypoints=http"
  - "traefik.http.routers.invoice.rule=Host(``)"
  - "traefik.http.middlewares.invoice-https-redirect.redirectscheme.scheme=https"
  - "traefik.http.routers.invoice.middlewares=invoice-https-redirect"
  - "traefik.http.routers.invoice-secure.entrypoints=https"
  - "traefik.http.routers.invoice-secure.rule=Host(``)"
  - "traefik.http.routers.invoice-secure.tls=true"
  - "traefik.http.routers.invoice-secure.tls.certresolver=http"
  - "traefik.http.routers.invoice-secure.service=invoice"
  - ""
  - ""
  - "traefik.http.routers.invoice-secure.middlewares=secHeaders@file"
  - "com.centurylinklabs.watchtower.enable=true"

image: invoiceninja/invoiceninja:5
env_file: env
restart: always
  - ./config/hosts:/etc/hosts:ro
  - ./docker/app/public:/var/www/app/public:rw,delegated
  - ./docker/app/storage:/var/www/app/storage:rw,delegated
  - invoiceninja
  - mdb
  - "in5.localhost: " #host and ip

external: true
external: true
external: true


It may help to load /update?secret= in the browser

I can’t run this command :thinking:


You need to add it to your app URL and load it in the browser

This don’t work…
The Application have been reload, but the drop down menu is with the same values.

I changed from windows to linux and macOS. All Systems have the same error.

@david do you have any thoughts?


you need to execute the /update like this

Okay thank you @david!

I have now only one problem… The pdf is don’t generate…
How can i fix this problem?

Create Invoice

In the logs is no information about this…

Add something to last post

view PDF

Most likely this is a DNS resolving issue where the container cannot resolve itself? I think there was another post like this in the forum somewhere.

Is there any error messages in the browser console?

Yes, i have the following Error Message:
Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ''. This request has been blocked; the content must be served over HTTPS.

What i do to fix it?
Can i route the pdf over https?

In the env file have i write in the APP_URL the URL with the https protocol.

If i set the require_https to true, i have the error to many redirects


do you have TRUSTED_PROXIES=*

in the .env file?