version: '2' services: mariadb: image: mariadb:10.10 volumes: - /volume1/docker/orangehrm/database/:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=orangehrm - MYSQL_ROOT_USER=root - MYSQL_DATABASE=orangehrm orangehrm: image: orangehrm/orangehrm:latest ports: - 80:80 - 443:443 environment: - ORANGEHRM_DATABASE_HOST=mariadb - ORANGEHRM_DATABASE_USER=root - ORANGEHRM_DATABASE_PASSWORD=orangehrm - ORANGEHRM_DATABASE_NAME=orangehrm - PUID=1027 - PGID=100 volumes: - /volume1/docker/orangehrm/config/:/orangehrm depends_on: - mariadb links: - mariadb:mariadb