DiouxX / docker-glpi

Project to deploy GLPI with docker
222 stars 185 forks source link

External database #36

Closed vp-lab closed 3 years ago

vp-lab commented 3 years ago

We can use an external database?

We already have GLPI installed (not in docker) but we want to migrate to docker and use the same database.

DiouxX commented 3 years ago

You can deploy only Glpi container without databse container.

Either you make a new installation and you inform your remote database server.

2021-07-28_20h41_51

2021-07-28_20h42_18

Or you deploy only the GLPI container and you copy the data of your existing installation in the volume. In this way, you should keep the information of your remote database.

vp-lab commented 3 years ago

I'm connected to the database (a dump from the original one) but I can't see any computers or anything. I need to do something more?

And if i want to use fusioninvetory plugin, it'll work?

Thank you.

DiouxX commented 3 years ago

I would have copied all the data (folder and files) from your old installation to the Docker installation. Then I would have adapted the _config/configdb.php file to connect to your correct database.

Of course you want to use the fsiononventory plugin. I use it in my Docker installation. You just have to follow the installation instructions:

  1. Download the plugin
  2. Copy it in the plugins folder
  3. Activate it via the web interface in the menu Configurations -> Plugins
vp-lab commented 3 years ago

Thank you for your response. Everything works but I have only one problem: How can I enable the GLPI cron for the fusioninventory plugin? I really need the cron or not?

Screenshot from 2021-08-05 17-41-58

DiouxX commented 3 years ago

Can you check this issue https://github.com/DiouxX/docker-glpi/issues/6#issuecomment-380374086 ? The problem was the same and it resolved.

vp-lab commented 3 years ago

Do you mean to change GLPI to CLI for the taskcheduler for fusioninventory? But the notification will stay there or need to disappear?

Nevermind. I just changed to CLI to GLPI => save. changed again from GLPI to CLI => save, error it's gone. I'll check tomorrow for crons on logs.

Screenshot from 2021-08-05 21-58-43

DiouxX commented 3 years ago

Is that your issue is resolved with changed the run mode from GLPI to CLI ?

vp-lab commented 3 years ago

It was already on CLI and get the information for the cron. I just change to GLPI , saved, changed again in CLI and saved, now it's working.

You can close the ticket. Thank you for the support.