Ajouter glpi/docker-compose.yml.example
This commit is contained in:
parent
7b1834af42
commit
f956fc44bb
1 changed files with 53 additions and 0 deletions
53
glpi/docker-compose.yml.example
Normal file
53
glpi/docker-compose.yml.example
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
cat docker-compose.yml
|
||||||
|
services:
|
||||||
|
glpi:
|
||||||
|
image: dimitry421/glpi_alma:10.0.18
|
||||||
|
container_name: glpi
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- TZ=<PHP timezone>
|
||||||
|
- GLPI_FQDN=<FQDN>
|
||||||
|
- HOST_USER_ID=1000
|
||||||
|
- HOST_GROUP_ID=1000
|
||||||
|
volumes:
|
||||||
|
- files:/var/www/html/files
|
||||||
|
- config:/var/www/html/config
|
||||||
|
- marketplace:/var/www/html/marketplace
|
||||||
|
- plugins:/var/www/html/plugins
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
|
- glpi
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.glpi.rule=Host(`<FQDN>`)"
|
||||||
|
- "traefik.http.routers.glpi.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.glpi.tls=true"
|
||||||
|
- "traefik.http.routers.glpi.tls.certresolver=letsencrypt"
|
||||||
|
- "traefik.docker.network=web"
|
||||||
|
- "traefik.http.services.glpi.loadbalancer.server.port=80"
|
||||||
|
|
||||||
|
mariadb:
|
||||||
|
image: mariadb:11.4
|
||||||
|
container_name: glpi-db
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=${GLPI_DB_ROOT_PASSWORD}
|
||||||
|
- MYSQL_DATABASE=glpi
|
||||||
|
- MYSQL_USER=glpi
|
||||||
|
- MYSQL_PASSWORD=${GLPI_DB_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
- glpi
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
files:
|
||||||
|
config:
|
||||||
|
marketplace:
|
||||||
|
plugins:
|
||||||
|
networks:
|
||||||
|
web:
|
||||||
|
external: true
|
||||||
|
glpi:
|
||||||
|
driver: bridge
|
||||||
Loading…
Add table
Add a link
Reference in a new issue