version: '3' services: ocsapplication: image: ocsinventory/ocsinventory-docker-image:nightly container_name : ocsinventory-server restart: always ports: - "80" volumes: - "perlcomdata:/etc/ocsinventory-server" - "ocsreportsdata:/usr/share/ocsinventory-reports/ocsreports" - "varlibdata:/var/lib/ocsinventory-reports" - "httpdconfdata:/etc/apache2/conf-available" - "profilesconfdata:/usr/share/ocsinventory-reports/ocsreports/config/profiles" environment: OCS_DB_SERVER: ocsinventory-db OCS_DB_USER: ocsuser OCS_DB_PASS: ocspass OCS_DB_NAME: ocsweb # See documentation to set up SSL for MySQL OCS_SSL_ENABLED: 0 OCS_DBI_PRINT_ERROR: 0 # Define the auth type : # 1 : Local Only # 2 : Local and LDAP # 3 : LDAP Only # 4 : LDAP with SSO # 5 : Always OK, won't ask for user and password # 6 : CAS authentication AUTH_TYPE: 1 links: - ocsdb networks: - localocs depends_on: - ocsdb ocsdb : image : mysql:8.0 container_name : ocsinventory-db restart: always ports : - "3306" volumes : - ./sql/:/docker-entrypoint-initdb.d/ - sqldata:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD : rootpass MYSQL_USER : ocsuser MYSQL_PASSWORD : ocspass MYSQL_DATABASE : ocsweb networks: - localocs ocsproxy: image: nginx container_name: ocsinventory-proxy restart: always ports: - 80:80 - 443:443 volumes: - ./nginx/conf:/etc/nginx/templates - ./nginx/certs:/etc/nginx/certs - ./nginx/auth:/etc/nginx/auth environment: # 80 or 443 LISTEN_PORT: 80 # empty or ssl PORT_TYPE: "" SSL_CERT: ocs-dummy.crt SSL_KEY: ocs-dummy.key # OCS Api user restriction (default ocsapi/ocapi) API_AUTH_FILE: ocsapi.htpasswd # OCS Download READ_TIMEOUT: 300 CONNECT_TIMEOUT: 300 SEND_TIMEOUT: 300 MAX_BODY_SIZE: 1G depends_on: - ocsapplication networks: - localocs networks: localocs: volumes: perlcomdata: ocsreportsdata: varlibdata: httpdconfdata: sqldata: profilesconfdata: