74 lines
2.1 KiB
YAML
74 lines
2.1 KiB
YAML
version: "3.7"
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
default:
|
|
|
|
services:
|
|
glpi:
|
|
image: git.nixc.us/nixius/glpi:production-glpi
|
|
environment:
|
|
TZ: America/New_York
|
|
MARIADB_ROOT_PASSWORD: diouxx
|
|
MARIADB_DATABASE: glpidb
|
|
MARIADB_USER: glpi_user
|
|
MARIADB_PASSWORD: glpi
|
|
networks:
|
|
- traefik
|
|
- default
|
|
volumes:
|
|
- /mnt/tank/persist/nixc.us/glpi/production/data:/var/www/html/glpi
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.hostname == macmini14
|
|
labels:
|
|
homepage.group: apps
|
|
homepage.name: Glpi
|
|
homepage.href: https://glpi.nixc.us/
|
|
homepage.description: Glpi
|
|
traefik.enable: "true"
|
|
traefik.http.routers.glpi.tls: "true"
|
|
traefik.http.services.production_glpi.loadbalancer.server.port: 80
|
|
traefik.http.routers.production_glpi.rule: Host(`glpi.nixc.us`)
|
|
traefik.http.routers.production_glpi.entrypoints: websecure
|
|
traefik.http.routers.production_glpi.tls.certresolver: letsencryptresolver
|
|
traefik.http.routers.production_glpi.service: glpi
|
|
traefik.docker.network: traefik
|
|
# traefik.http.routers.production_glpi.middlewares: 'authelia_authelia@docker'
|
|
update_config:
|
|
order: stop-first
|
|
failure_action: rollback
|
|
delay: 5s
|
|
delay: 10s
|
|
parallelism: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
|
|
mariadb:
|
|
image: git.nixc.us/nixius/mariadb:production-mariadb
|
|
environment:
|
|
TZ: America/New_York
|
|
MARIADB_ROOT_PASSWORD: diouxx
|
|
MARIADB_DATABASE: glpidb
|
|
MARIADB_USER: glpi_user
|
|
MARIADB_PASSWORD: glpi
|
|
networks:
|
|
- default
|
|
volumes:
|
|
- /mnt/tank/persist/nixc.us/mariadb/production/config:/var/lib/mysql
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.hostname == macmini14
|
|
labels:
|
|
traefik.enable: "false"
|
|
update_config:
|
|
order: stop-first
|
|
failure_action: rollback
|
|
delay: 5s
|
|
delay: 10s
|
|
parallelism: 1
|
|
restart_policy:
|
|
condition: on-failure |