Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
MARIADB_HOST="some-mariadb"
MARIADB_PORT="3306"
MARIADB_USER="glpi-user"
MARIADB_PASSWORD="glpi-password"
MARIADB_ROOT_PASSWORD="root-password"
MARIADB_DATABASE="glpi"
MYSQL_HOST="some-mariadb"
MYSQL_PORT="3306"
MYSQL_USER="glpi-user"
MYSQL_PASSWORD="glpi-password"
MYSQL_ROOT_PASSWORD="root-password"
MYSQL_DATABASE="glpi"
APP_VER="latest"
LANG="en_GB"
TZ="America/Barbados"
59 changes: 59 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
version: "3.2"

volumes:
mysql-dir:
glpi-config:
glpi-files:
glpi-plugins:
glpi-marketplace:

services:
some-mariadb:
env_file: .env
image: 'mariadb:latest'
ports:
- '3306:3306'
networks:
- some-network
volumes:
- "mysql-dir:/var/lib/mysql"
healthcheck:
test: "/usr/bin/mariadb --user=\"${MARIADB_USER}\" --password=\"${MARIADB_PASSWORD}\" --execute \"SHOW DATABASES;\" \"${MARIADB_DATABASE}\""
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3

some-glpi:
env_file: .env
image: "ppcm/glpi-server:${APP_VER}"
ports:
- '8089:80'
networks:
- some-network
depends_on:
some-mariadb:
condition: service_healthy
volumes:
- "glpi-config:/etc/glpi"
- "glpi-files:/var/glpi/files"
- "glpi-plugins:/var/www/glpi/plugins"
- "glpi-marketplace:/var/www/glpi/marketplace"

some-glpi-cron:
env_file: .env
image: "ppcm/glpi-cron-daemon:${APP_VER}"
networks:
- some-network
depends_on:
- some-glpi
volumes:
- "glpi-config:/etc/glpi"
- "glpi-files:/var/glpi/files"
- "glpi-plugins:/var/www/glpi/plugins"
- "glpi-marketplace:/var/www/glpi/marketplace"

networks:
some-network:
name: some-network