Restart of InvoicePlane appends data to the ipconfig.php

The page doesn’t load, instead there’s errors thrown because a connection to the database couldn’t be established.


Installed it on Portainer in a stack:

services:
invoiceplane:
hostname: invoiceplane
image: mhzawadi/invoiceplane:latest
container_name: invoiceplane
ports:
- "3217:80"
volumes:
- invoiceplane_data:/var/www/html
environment:
- DB_HOST=mysql
- DB_USER=name
- DB_PASS=pw
- DB_NAME=invoiceplane
- IP_URL=[http://server.local:3217](http://server.local:3217/)
- HOST_URL=server.local:3217

db:
hostname: invoiceplane_db
image: mysql:8.0
container_name: invoiceplane_db
volumes:
- db_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=pw
- MYSQL_DATABASE=invoiceplane
- MYSQL_USER=name
- MYSQL_PASSWORD=pw

volumes:
invoiceplane_data:
db_data:

Restarting the container several times results in the ipconfig.php to look like this:
image
So for some reason it appends the default values to the beginning.

Hey man,

That’s weird.
Have you tried it with a simple docker environment?
In the InvoicePlane directory there’s a docker-compose.yml file.

Just do docker-compose up and you’re ready to go.

I’m sadly not too familiar with Docker.
Though I noticed something in the ipconfig.php:
“# These database settings are set during the initial setup”

Where are they getting set from?
I tried disabling the DISABLE_SETUP flag but when I restart it sets it to true again.

1 Like

Try DISABLE_SETUP=true
Have you looked inside that Docker image that you are requesting in your docker-compose.yml file?

It’s readable text. In that file there might be something about that setting.

Instead of using that docker-compose.yml file that you’re using right now, try another file.

But i don’t know nothing about Portainer, so i can’t help you there.