docker-GLPI/docker-compose.yml
2024-03-28 18:20:48 +01:00

65 lines
1.5 KiB
YAML

version: '3.5'
services:
web:
container_name: glpi-web
build: web-builder
restart: always
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
- PHP_MAX_INPUT_VARS=100000
depends_on:
- db
- redis
cron:
container_name: glpi-cron
image : glpi-web:latest
restart: always
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
entrypoint: /etc/service/cron
depends_on:
- db
- web
db:
image: mariadb
container_name: glpi-db
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
env_file:
- ./mysql_settings.ini
volumes:
- ./db/:/var/lib/mysql/
- /etc/localtime:/etc/localtime:ro
redis:
container_name: glpi-redis
image: redis:latest
volumes:
- ./cache:/data
restart: "always"