Compose-Library/glpi.compose.yaml.txt
2025-01-25 18:01:48 +01:00

29 lines
No EOL
659 B
Text
Executable file

services:
#MariaDB Container
mariadb:
image: mariadb:10.7
container_name: mariadb
hostname: mariadb
environment:
- MARIADB_ROOT_PASSWORD=${DBROOTPASS}
- MARIADB_DATABASE=glpidb
- MARIADB_USER=glpi_user
- MARIADB_PASSWORD=${DBPASS}
volumes:
- ${DATA_DIR}/mysql:/var/lib/mysql
restart: always
#GLPI Container
glpi:
image: diouxx/glpi
container_name : glpi
links:
- mariadb
hostname: glpi
ports:
- ${IP}:${PORT}:80
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ${DATA_DIR}/glpi:/var/www/html/glpi
restart: always