Project to deploy GLPI with docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
DiouxX 8b13a3bf5c
Merge pull request #9 from Lunaden/master
8 years ago
Dockerfile Cron feature Fix 8 years ago
README.md Update README.md 8 years ago
docker-compose-test.yml Fix timezone where somtimes apache / php timezone differ from container timezone 8 years ago
docker-compose.yml Add cron to Dockerfile install. Change glpi-start.sh to add cron file to 8 years ago
glpi-start.sh Merge branch 'master' into master 8 years ago
mysql.env Create docker-compose.yml 9 years ago

README.md

Project to deploy GLPI with docker

Install and run an GLPI instance with docker.

Deploy GLPI without database

docker run --name glpi -p 80:80 -d diouxx/glpi

Deploy GLPI with existing database

docker run --name glpi --link yourdatabase:mysql -p 80:80 -d diouxx/glpi

For an usage on production environnement or daily usage, it's recommanded to use a data container for persistent data.

  • First, create data container
docker create --name glpi-data --volume /var/www/html/glpi:/var/www/html/glpi busybox /bin/true
  • Then, you link your data container with GLPI container
docker run --name glpi --hostname glpi --link mysql:mysql --volumes-from glpi-data -p 80:80 -d diouxx/glpi

Enjoy :)

Deploy a specific release of GLPI

Default, docker run will use the latest release of GLPI. For an usage on production environnement, it's recommanded to use the latest release. Here an example for release 9.1.6 :

docker run --name glpi --hostname glpi --link mysql:mysql --volumes-from glpi-data -p 80:80 --env "VERSION_GLPI=9.1.6" -d diouxx/glpi

Deploy with docker-compose

To deploy with docker compose, you use docker-compose.yml and mysql.env file. You can modify mysql.env to personalize settings like :

  • MySQL root password
  • GLPI database
  • GLPI user database
  • GLPI user password

To deploy, just run the following command on the same directory as files

docker-compose up -d