Update de GLPI

Ajout de la conf traefik
passage à mariadb
This commit is contained in:
root
2025-09-03 00:34:56 +02:00
parent 7185af5c2d
commit 2afc324e6b
6 changed files with 61 additions and 29 deletions

View File

@@ -1,9 +1,11 @@
version: '3.5'
services:
web:
web: &glpi_base
container_name: glpi-web
build: web-builder
restart: always
networks:
- proxy
- default
volumes:
- ./etc/:/etc/glpi/
- ./files/:/var/lib/glpi/
@@ -21,34 +23,46 @@ services:
depends_on:
- db
- redis
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.tohttps.redirectscheme.scheme=https"
- "traefik.http.middlewares.tohttps.redirectscheme.permanent=true"
- "traefik.http.middlewares.tohttps.redirectscheme.port=443"
- "traefik.http.routers.glpi-http.rule=Host(`glpi.blorand.org`)"
- "traefik.http.routers.glpi-http.entrypoints=web"
- "traefik.http.routers.glpi-http.middlewares=tohttps"
- "traefik.http.routers.glpi-https.rule=Host(`glpi.blorand.org`)&&!PathPrefix(`/front/inventory.php`)"
- "traefik.http.routers.glpi-https.entrypoints=websecure"
- "traefik.http.routers.glpi-https.tls=true"
- "traefik.http.routers.glpi-inventory-https.rule=Host(`glpi.blorand.org`)&&PathPrefix(`/front/inventory.php`)"
- "traefik.http.routers.glpi-inventory-https.entrypoints=websecure"
- "traefik.http.routers.glpi-inventory-https.tls=true"
- "traefik.http.routers.glpi-inventory-https.middlewares=glpi-inventory-auth"
cron:
<<: *glpi_base
container_name: glpi-cron
image : glpi-web:latest
restart: always
networks:
- default
volumes:
- ./etc/:/etc/glpi/
- ./files/:/var/lib/glpi/
- ./log/:/var/log/glpi/
- /etc/localtime:/etc/localtime:ro
env_file:
- ./mysql_settings.ini
environment:
- PHP_MEMORY_LIMIT=256M
- PHP_UPLOAD_MAX_FILESIZE=20M
- PHP_POST_MAX_SIZE=40M
- PHP_SESSION_GC_MAXLIFETIME=14400
- PHP_DATE_TIMEZONE=Europe/Paris
ports: []
entrypoint: /etc/service/cron
depends_on:
- db
- web
labels: []
db:
image: mariadb
image: mariadb:lts
container_name: glpi-db
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
networks:
- default
env_file:
- ./mysql_settings.ini
volumes:
@@ -57,8 +71,18 @@ services:
redis:
container_name: glpi-redis
image: redis:latest
image: redis:alpine
volumes:
- ./cache:/data
restart: "always"
networks:
- default
networks:
default:
ipam:
config:
- subnet: 172.18.4.0/24
proxy:
name: proxy
external: true