Coder Social home page Coder Social logo

glpi-ocs's Introduction

Orchestration with Docker Compose

version: '3.1'

services:
  ocs:
    image: cmotta2016/ocsinventory
    environment:
      OCS_DBNAME: ocsdatabase
      OCS_DBSERVER_READ: database
      OCS_DBSERVER_WRITE: database
      OCS_DBUSER: ocsuser
      OCS_DBPASS: ocspasswd
    volumes:
      - ocsserver:/usr/share/ocsinventory-reports/
    ports:
      - "443:443"
    container_name: ocsinventory-server

  db:
    image: mysql:5.7.25
    environment:
      MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_root_password
      MYSQL_USER: ocsuser
      MYSQL_PASSWORD_FILE: /run/secrets/db_password
      MYSQL_DATABASE: ocsdatabase
    volumes:
      - database:/var/lib/mysql
    container_name: database
    secrets:
      - db_root_password
      - db_password

  glpi:
    image: cmotta2016/glpi
    volumes:
      - glpiserver:/var/www/glpi
    container_name: glpi-server

  proxy:
    build:
      dockerfile: Dockerfile.dev
      context: ./nginx
    ports:
      - "80:80"
    environment:
      GLPI: glpi-server
      OCS: ocsinventory-server

secrets:
  db_root_password:
    file: .mysql_root_password
  db_password:
    file: .mysql_ocsdb_password

volumes:
  database:
  ocsserver:
  glpiserver:

Deploying applications:

# docker-compose up --build -d 

Installing Plugin

Install OCSInventory plugin directly inside directory mounted on volume glpiserver. Check latest plugin on: https://github.com/pluginsGLPI/ocsinventoryng/releases

Accessing applications

The access for both applications is made through nginx-proxy, accessing the url according subdirectory:

http://<your_url>/  --> to access glpi
and
http://<your_url>/ocsreports  --> to access ocsreports

OCS application had access by port 443 directly. This was made because the snmp agents use https to contact the server.

glpi-ocs's People

Contributors

cmotta2016 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.