UNPKG

iqs-services-controlobjects-node

Version:
62 lines (51 loc) 2.11 kB
--- # Container descriptor - descriptor: "pip-services:context-info:default:default:1.0" name: "iqs-services-controlobjects" description: "controlobjects microservice for iQuipsys Positron" # Console logger - descriptor: "pip-services:logger:console:default:1.0" level: "trace" # Performance counters that posts values to log - descriptor: "pip-services:counters:log:default:1.0" level: "trace" {{#if MEMORY_ENABLED}} # In-memory persistence. Use only for testing! - descriptor: "iqs-services-controlobjects:persistence:memory:default:1.0" {{/if}} {{#if FILE_ENABLED}} # File persistence. Use it for testing of for simple standalone deployments - descriptor: "iqs-services-controlobjects:persistence:file:default:1.0" path: {{FILE_PATH}}{{#unless FILE_PATH}}"../data/control_objects.json"{{/unless}} {{/if}} {{#if MONGO_ENABLED}} # MongoDB Persistence - descriptor: "iqs-services-controlobjects:persistence:mongodb:default:1.0" collection: {{MONGO_COLLECTION}}{{#unless MONGO_COLLECTION}}control_objects{{/unless}} connection: uri: {{{MONGO_SERVICE_URI}}} host: {{{MONGO_SERVICE_HOST}}}{{#unless MONGO_SERVICE_HOST}}localhost{{/unless}} port: {{MONGO_SERVICE_PORT}}{{#unless MONGO_SERVICE_PORT}}27017{{/unless}} database: {{MONGO_DB}}{{#unless MONGO_DB}}app{{/unless}} credential: username: {{MONGO_USER}} password: {{MONGO_PASS}} {{/if}} {{#unless MEMORY_ENABLED}}{{#unless FILE_ENABLED}}{{#unless MONGO_ENABLED}} # Default in-memory persistence - descriptor: "iqs-services-controlobjects:persistence:memory:default:1.0" {{/unless}}{{/unless}}{{/unless}} # Default controller - descriptor: "iqs-services-controlobjects:controller:default:default:1.0" # Common HTTP endpoint - descriptor: "pip-services:endpoint:http:default:1.0" connection: protocol: "http" host: "0.0.0.0" port: 8080 # HTTP endpoint version 1.0 - descriptor: "iqs-services-controlobjects:service:http:default:1.0" # Heartbeat service - descriptor: "pip-services:heartbeat-service:http:default:1.0" # Status service - descriptor: "pip-services:status-service:http:default:1.0"