|
| 1 | +# Code generated by Github Action; DO NOT EDIT. |
| 2 | + |
| 3 | +x-runtime: &runtime |
| 4 | + hostname: localhost |
| 5 | + platform: linux/amd64 |
| 6 | + privileged: true |
| 7 | + network_mode: host |
| 8 | + |
| 9 | +x-ydb-node: &ydb-node |
| 10 | + image: cr.yandex/crptqonuodf51kdj7a7d/ydb:24.2.7 |
| 11 | + restart: always |
| 12 | + <<: *runtime |
| 13 | + volumes: |
| 14 | + - ./ydb.yaml:/opt/ydb/cfg/config.yaml |
| 15 | + |
| 16 | +name: ydb |
| 17 | + |
| 18 | +services: |
| 19 | + static-0: |
| 20 | + <<: *ydb-node |
| 21 | + container_name: ydb-static-0 |
| 22 | + command: |
| 23 | + - /opt/ydb/bin/ydbd |
| 24 | + - server |
| 25 | + - --grpc-port |
| 26 | + - "2135" |
| 27 | + - --mon-port |
| 28 | + - "8765" |
| 29 | + - --ic-port |
| 30 | + - "19001" |
| 31 | + - --yaml-config |
| 32 | + - /opt/ydb/cfg/config.yaml |
| 33 | + - --node |
| 34 | + - static |
| 35 | + - --label |
| 36 | + - deployment=docker |
| 37 | + ports: |
| 38 | + - 2135:2135 |
| 39 | + - 8765:8765 |
| 40 | + - 19001:19001 |
| 41 | + healthcheck: |
| 42 | + test: bash -c "exec 6<> /dev/tcp/localhost/2135" |
| 43 | + interval: 10s |
| 44 | + timeout: 1s |
| 45 | + retries: 3 |
| 46 | + start_period: 30s |
| 47 | + |
| 48 | + static-init: |
| 49 | + <<: *ydb-node |
| 50 | + restart: on-failure |
| 51 | + container_name: ydb-static-init |
| 52 | + command: |
| 53 | + - /opt/ydb/bin/ydbd |
| 54 | + - -s |
| 55 | + - grpc://localhost:2135 |
| 56 | + - admin |
| 57 | + - blobstorage |
| 58 | + - config |
| 59 | + - init |
| 60 | + - --yaml-file |
| 61 | + - /opt/ydb/cfg/config.yaml |
| 62 | + depends_on: |
| 63 | + static-0: |
| 64 | + condition: service_healthy |
| 65 | + |
| 66 | + tenant-init: |
| 67 | + <<: *ydb-node |
| 68 | + restart: on-failure |
| 69 | + container_name: ydb-tenant-init |
| 70 | + command: |
| 71 | + - /opt/ydb/bin/ydbd |
| 72 | + - -s |
| 73 | + - grpc://localhost:2135 |
| 74 | + - admin |
| 75 | + - database |
| 76 | + - /Root/testdb |
| 77 | + - create |
| 78 | + - ssd:1 |
| 79 | + depends_on: |
| 80 | + static-init: |
| 81 | + condition: service_completed_successfully |
| 82 | + |
| 83 | + database-1: |
| 84 | + <<: *ydb-node |
| 85 | + container_name: ydb-database-1 |
| 86 | + command: |
| 87 | + - /opt/ydb/bin/ydbd |
| 88 | + - server |
| 89 | + - --grpc-port |
| 90 | + - "2136" |
| 91 | + - --mon-port |
| 92 | + - "8766" |
| 93 | + - --ic-port |
| 94 | + - "19002" |
| 95 | + - --yaml-config |
| 96 | + - /opt/ydb/cfg/config.yaml |
| 97 | + - --tenant |
| 98 | + - /Root/testdb |
| 99 | + - --node-broker |
| 100 | + - grpc://localhost:2135 |
| 101 | + - --label |
| 102 | + - deployment=docker |
| 103 | + ports: |
| 104 | + - 2136:2136 |
| 105 | + - 8766:8766 |
| 106 | + - 19002:19002 |
| 107 | + healthcheck: |
| 108 | + test: bash -c "exec 6<> /dev/tcp/localhost/2136" |
| 109 | + interval: 10s |
| 110 | + timeout: 1s |
| 111 | + retries: 3 |
| 112 | + start_period: 30s |
| 113 | + depends_on: |
| 114 | + static-0: |
| 115 | + condition: service_healthy |
| 116 | + static-init: |
| 117 | + condition: service_completed_successfully |
| 118 | + tenant-init: |
| 119 | + condition: service_completed_successfully |
| 120 | + |
| 121 | + database-2: |
| 122 | + <<: *ydb-node |
| 123 | + container_name: ydb-database-2 |
| 124 | + command: |
| 125 | + - /opt/ydb/bin/ydbd |
| 126 | + - server |
| 127 | + - --grpc-port |
| 128 | + - "2137" |
| 129 | + - --mon-port |
| 130 | + - "8767" |
| 131 | + - --ic-port |
| 132 | + - "19003" |
| 133 | + - --yaml-config |
| 134 | + - /opt/ydb/cfg/config.yaml |
| 135 | + - --tenant |
| 136 | + - /Root/testdb |
| 137 | + - --node-broker |
| 138 | + - grpc://localhost:2135 |
| 139 | + - --label |
| 140 | + - deployment=docker |
| 141 | + ports: |
| 142 | + - 2137:2137 |
| 143 | + - 8767:8767 |
| 144 | + - 19003:19003 |
| 145 | + healthcheck: |
| 146 | + test: bash -c "exec 6<> /dev/tcp/localhost/2137" |
| 147 | + interval: 10s |
| 148 | + timeout: 1s |
| 149 | + retries: 3 |
| 150 | + start_period: 30s |
| 151 | + depends_on: |
| 152 | + static-0: |
| 153 | + condition: service_healthy |
| 154 | + static-init: |
| 155 | + condition: service_completed_successfully |
| 156 | + tenant-init: |
| 157 | + condition: service_completed_successfully |
| 158 | + |
| 159 | + database-3: |
| 160 | + <<: *ydb-node |
| 161 | + container_name: ydb-database-3 |
| 162 | + command: |
| 163 | + - /opt/ydb/bin/ydbd |
| 164 | + - server |
| 165 | + - --grpc-port |
| 166 | + - "2138" |
| 167 | + - --mon-port |
| 168 | + - "8768" |
| 169 | + - --ic-port |
| 170 | + - "19004" |
| 171 | + - --yaml-config |
| 172 | + - /opt/ydb/cfg/config.yaml |
| 173 | + - --tenant |
| 174 | + - /Root/testdb |
| 175 | + - --node-broker |
| 176 | + - grpc://localhost:2135 |
| 177 | + - --label |
| 178 | + - deployment=docker |
| 179 | + ports: |
| 180 | + - 2138:2138 |
| 181 | + - 8768:8768 |
| 182 | + - 19004:19004 |
| 183 | + healthcheck: |
| 184 | + test: bash -c "exec 6<> /dev/tcp/localhost/2138" |
| 185 | + interval: 10s |
| 186 | + timeout: 1s |
| 187 | + retries: 3 |
| 188 | + start_period: 30s |
| 189 | + depends_on: |
| 190 | + static-0: |
| 191 | + condition: service_healthy |
| 192 | + static-init: |
| 193 | + condition: service_completed_successfully |
| 194 | + tenant-init: |
| 195 | + condition: service_completed_successfully |
| 196 | + |
| 197 | + database-4: |
| 198 | + <<: *ydb-node |
| 199 | + container_name: ydb-database-4 |
| 200 | + command: |
| 201 | + - /opt/ydb/bin/ydbd |
| 202 | + - server |
| 203 | + - --grpc-port |
| 204 | + - "2139" |
| 205 | + - --mon-port |
| 206 | + - "8769" |
| 207 | + - --ic-port |
| 208 | + - "19005" |
| 209 | + - --yaml-config |
| 210 | + - /opt/ydb/cfg/config.yaml |
| 211 | + - --tenant |
| 212 | + - /Root/testdb |
| 213 | + - --node-broker |
| 214 | + - grpc://localhost:2135 |
| 215 | + - --label |
| 216 | + - deployment=docker |
| 217 | + ports: |
| 218 | + - 2139:2139 |
| 219 | + - 8769:8769 |
| 220 | + - 19005:19005 |
| 221 | + healthcheck: |
| 222 | + test: bash -c "exec 6<> /dev/tcp/localhost/2139" |
| 223 | + interval: 10s |
| 224 | + timeout: 1s |
| 225 | + retries: 3 |
| 226 | + start_period: 30s |
| 227 | + depends_on: |
| 228 | + static-0: |
| 229 | + condition: service_healthy |
| 230 | + static-init: |
| 231 | + condition: service_completed_successfully |
| 232 | + tenant-init: |
| 233 | + condition: service_completed_successfully |
| 234 | + |
| 235 | + database-5: |
| 236 | + <<: *ydb-node |
| 237 | + container_name: ydb-database-5 |
| 238 | + command: |
| 239 | + - /opt/ydb/bin/ydbd |
| 240 | + - server |
| 241 | + - --grpc-port |
| 242 | + - "2140" |
| 243 | + - --mon-port |
| 244 | + - "8770" |
| 245 | + - --ic-port |
| 246 | + - "19006" |
| 247 | + - --yaml-config |
| 248 | + - /opt/ydb/cfg/config.yaml |
| 249 | + - --tenant |
| 250 | + - /Root/testdb |
| 251 | + - --node-broker |
| 252 | + - grpc://localhost:2135 |
| 253 | + - --label |
| 254 | + - deployment=docker |
| 255 | + ports: |
| 256 | + - 2140:2140 |
| 257 | + - 8770:8770 |
| 258 | + - 19006:19006 |
| 259 | + healthcheck: |
| 260 | + test: bash -c "exec 6<> /dev/tcp/localhost/2140" |
| 261 | + interval: 10s |
| 262 | + timeout: 1s |
| 263 | + retries: 3 |
| 264 | + start_period: 30s |
| 265 | + depends_on: |
| 266 | + static-0: |
| 267 | + condition: service_healthy |
| 268 | + static-init: |
| 269 | + condition: service_completed_successfully |
| 270 | + tenant-init: |
| 271 | + condition: service_completed_successfully |
| 272 | + |
| 273 | + prometheus: |
| 274 | + image: prom/prometheus |
| 275 | + restart: unless-stopped |
| 276 | + <<: *runtime |
| 277 | + ports: |
| 278 | + - "9090:9090" |
| 279 | + volumes: |
| 280 | + - ./prometheus.yml:/etc/prometheus/prometheus.yml |
| 281 | + deploy: &monitoring-deploy |
| 282 | + resources: |
| 283 | + limits: |
| 284 | + cpus: "0.1" |
| 285 | + memory: 1000M |
| 286 | + reservations: |
| 287 | + cpus: "0.001" |
| 288 | + memory: 50M |
| 289 | + |
| 290 | + prometheus-pushgateway: |
| 291 | + image: prom/pushgateway |
| 292 | + restart: unless-stopped |
| 293 | + <<: *runtime |
| 294 | + ports: |
| 295 | + - "9091:9091" |
| 296 | + deploy: |
| 297 | + <<: *monitoring-deploy |
| 298 | + |
| 299 | +# chaos: |
| 300 | +# image: docker:latest |
| 301 | +# restart: on-failure |
| 302 | +# container_name: ydb-chaos |
| 303 | +# <<: *runtime |
| 304 | +# entrypoint: ["/bin/sh", "-c", "ls -la /opt/ydb && /opt/ydb/chaos.sh"] |
| 305 | +# volumes: |
| 306 | +# - ./chaos.sh:/opt/ydb/chaos.sh |
| 307 | +# - ./ydb.yaml:/opt/ydb/cfg/config.yaml |
| 308 | +# - /var/run/docker.sock:/var/run/docker.sock |
| 309 | +# depends_on: |
| 310 | +# static-0: |
| 311 | +# condition: service_healthy |
0 commit comments