added MARIADB_HOST variable

if one needs an external database
This commit is contained in:
Bryan Joshua Pedini 2023-10-04 21:56:25 +02:00
parent d0312ed7e2
commit fe6173f08f
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ services:
- mariadb - mariadb
environment: environment:
- TZ=${PI_TIMEZONE} - TZ=${PI_TIMEZONE}
- IPAM_DATABASE_HOST=mariadb - IPAM_DATABASE_HOST=${MARIADB_HOST}
- IPAM_DATABASE_NAME=${MARIADB_DATABASE} - IPAM_DATABASE_NAME=${MARIADB_DATABASE}
- IPAM_DATABASE_USER=${MARIADB_USER} - IPAM_DATABASE_USER=${MARIADB_USER}
- IPAM_DATABASE_PASS=${MARIADB_PASSWORD} - IPAM_DATABASE_PASS=${MARIADB_PASSWORD}

View File

@ -14,6 +14,7 @@ TRAEFIK_HTTPS_MIDDLEWARES=hsts
PI_VERSION=1.5x PI_VERSION=1.5x
PI_TIMEZONE=Europe/Rome PI_TIMEZONE=Europe/Rome
PI_SCAN_INTERVAL=10m PI_SCAN_INTERVAL=10m
MARIADB_HOST=mariadb
# PHP IPAM Diun # PHP IPAM Diun
PI_DIUN_ENABLE=true PI_DIUN_ENABLE=true
PI_DIUN_WATCHREPO=true PI_DIUN_WATCHREPO=true