| 1 | version: "3.9" |
| 2 | |
| 3 | x-omnistrate-service-plan: |
| 4 | name: "FalkorDB Free" |
| 5 | tenancyType: "OMNISTRATE_MULTI_TENANCY" |
| 6 | deployment: |
| 7 | hostedDeployment: |
| 8 | GcpProjectId: "$GcpProjectId" |
| 9 | GcpProjectNumber: "$GcpProjectNumber" |
| 10 | GcpServiceAccountEmail: "$GcpServiceAccountEmail" |
| 11 | |
| 12 | x-internal-integrations: |
| 13 | logs: |
| 14 | provider: native |
| 15 | metrics: |
| 16 | provider: native |
| 17 | |
| 18 | x-omnistrate-integrations: |
| 19 | - omnistrateMetrics: |
| 20 | |
| 21 | services: |
| 22 | # Free |
| 23 | Free: |
| 24 | x-omnistrate-mode-internal: false |
| 25 | image: omnistrate/noop |
| 26 | x-omnistrate-api-params: |
| 27 | - key: name |
| 28 | description: The name of the FalkorDB instance |
| 29 | name: Name |
| 30 | type: String |
| 31 | modifiable: true |
| 32 | required: false |
| 33 | defaultValue: FalkorDB Instance |
| 34 | export: true |
| 35 | - key: description |
| 36 | description: A description of the FalkorDB instance |
| 37 | name: Description |
| 38 | type: String |
| 39 | modifiable: true |
| 40 | required: false |
| 41 | defaultValue: Description |
| 42 | export: true |
| 43 | # - key: enableTLS |
| 44 | # description: Whether to enable TLS for the database |
| 45 | # name: Enable TLS |
| 46 | # type: Boolean |
| 47 | # modifiable: false |
| 48 | # required: true |
| 49 | # export: true |
| 50 | # defaultValue: "false" |
| 51 | # parameterDependencyMap: |
| 52 | # node-f: enableTLS |
| 53 | - key: falkordbUser |
| 54 | description: Choose a default username for your database |
| 55 | name: FalkorDB User |
| 56 | type: String |
| 57 | modifiable: false |
| 58 | required: true |
| 59 | export: true |
| 60 | defaultValue: "falkordb" |
| 61 | parameterDependencyMap: |
| 62 | node-f: falkordbUser |
| 63 | - key: falkordbPassword |
| 64 | description: Choose a default password for your database |
| 65 | name: FalkorDB Password |
| 66 | type: Password |
| 67 | modifiable: false |
| 68 | required: true |
| 69 | export: false |
| 70 | parameterDependencyMap: |
| 71 | node-f: falkordbPassword |
| 72 | depends_on: |
| 73 | - node-f |
| 74 | |
| 75 | node-f: |
| 76 | x-omnistrate-mode-internal: true |
| 77 | image: $FalkorDBNodeImage |
| 78 | x-omnistrate-compute: |
| 79 | replicaCount: 1 |
| 80 | x-omnistrate-api-params: |
| 81 | - key: name |
| 82 | description: The name of the FalkorDB instance |
| 83 | name: Name |
| 84 | type: String |
| 85 | modifiable: true |
| 86 | required: false |
| 87 | defaultValue: My favorite database |
| 88 | export: true |
| 89 | - key: description |
| 90 | description: A description of the FalkorDB instance |
| 91 | name: Description |
| 92 | type: String |
| 93 | modifiable: true |
| 94 | required: false |
| 95 | defaultValue: Description |
| 96 | export: true |
| 97 | - key: falkordbUser |
| 98 | description: Choose a default username for your database |
| 99 | name: FalkorDB User |
| 100 | type: String |
| 101 | modifiable: false |
| 102 | required: true |
| 103 | export: true |
| 104 | defaultValue: "falkordb" |
| 105 | - key: falkordbPassword |
| 106 | description: Choose a default password for your database |
| 107 | name: FalkorDB Password |
| 108 | type: Password |
| 109 | modifiable: false |
| 110 | required: true |
| 111 | export: false |
| 112 | # - key: enableTLS |
| 113 | # description: Whether to enable TLS for the database |
| 114 | # name: Enable TLS |
| 115 | # type: Boolean |
| 116 | # modifiable: false |
| 117 | # required: true |
| 118 | # export: true |
| 119 | # defaultValue: "false" |
| 120 | volumes: |
| 121 | - source: ./data |
| 122 | target: /data |
| 123 | type: bind |
| 124 | x-omnistrate-storage: |
| 125 | gcp: |
| 126 | instanceStorageType: GCP::PD_BALANCED |
| 127 | instanceStorageSizeGi: 10 |
| 128 | secrets: |
| 129 | - source: adminpasspath |
| 130 | target: /run/secrets/adminpassword |
| 131 | - source: falkordbpasspath |
| 132 | target: /run/secrets/falkordbpassword |
| 133 | |
| 134 | environment: |
| 135 | - RUN_NODE=1 |
| 136 | - RUN_SENTINEL=0 |
| 137 | - RUN_METRICS=1 |
| 138 | - RUN_HEALTH_CHECK=1 |
| 139 | - BROWSER=0 |
| 140 | - NODE_HOST=$sys.network.node.externalEndpoint |
| 141 | - NODE_PORT=6379 |
| 142 | # - TLS=$var.enableTLS |
| 143 | # Disable TLS for free tier |
| 144 | - TLS=false |
| 145 | - FALKORDB_USER=$var.falkordbUser |
| 146 | - DATA_DIR=/data |
| 147 | - INSTANCE_TYPE=e2-custom-small-1024 |
| 148 | - ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem |
| 149 | - FALKORDB_CACHE_SIZE=25 |
| 150 | - FALKORDB_NODE_CREATION_BUFFER=16384 |
| 151 | - FALKORDB_MAX_QUEUED_QUERIES=50 |
| 152 | - FALKORDB_TIMEOUT_MAX=0 |
| 153 | - FALKORDB_TIMEOUT_DEFAULT=0 |
| 154 | - FALKORDB_RESULT_SET_SIZE=10000 |
| 155 | - FALKORDB_QUERY_MEM_CAPACITY=52428800 |
| 156 | ports: |
| 157 | - "6379:6379" |
| 158 | # - "9121:9121" |
| 159 | x-omnistrate-capabilities: |
| 160 | enableMultiZone: false |
| 161 | enableEndpointPerReplica: true |
| 162 | deploy: |
| 163 | resources: |
| 164 | limits: |
| 165 | cpus: "0.5" |
| 166 | memory: 100M |
| 167 | reservations: |
| 168 | cpus: "0.1" |
| 169 | memory: 100M |
| 170 | |
| 171 | secrets: |
| 172 | adminpasspath: |
| 173 | file: ./secrets/adminpassword |
| 174 | falkordbpasspath: |
| 175 | file: ./secrets/falkordbpassword |