|
31 | 31 | "$ref": "#/definitions/service" |
32 | 32 | } |
33 | 33 | }, |
34 | | - "additionalProperties": false |
| 34 | + "additionalProperties": false, |
| 35 | + "description": "The services in your project" |
35 | 36 | }, |
36 | 37 |
|
37 | 38 | "networks": { |
|
40 | 41 | "^[a-zA-Z0-9._-]+$": { |
41 | 42 | "$ref": "#/definitions/network" |
42 | 43 | } |
43 | | - } |
| 44 | + }, |
| 45 | + "description": "Networks that are shared among multiple services" |
44 | 46 | }, |
45 | 47 |
|
46 | 48 | "volumes": { |
|
50 | 52 | "$ref": "#/definitions/volume" |
51 | 53 | } |
52 | 54 | }, |
53 | | - "additionalProperties": false |
| 55 | + "additionalProperties": false, |
| 56 | + "description": "Named volumes that are shared among multiple services" |
54 | 57 | }, |
55 | 58 |
|
56 | 59 | "secrets": { |
|
60 | 63 | "$ref": "#/definitions/secret" |
61 | 64 | } |
62 | 65 | }, |
63 | | - "additionalProperties": false |
| 66 | + "additionalProperties": false, |
| 67 | + "description": "Secrets that are shared among multiple services" |
64 | 68 | }, |
65 | 69 |
|
66 | 70 | "configs": { |
|
70 | 74 | "$ref": "#/definitions/config" |
71 | 75 | } |
72 | 76 | }, |
73 | | - "additionalProperties": false |
| 77 | + "additionalProperties": false, |
| 78 | + "description": "Configurations for services in the project" |
74 | 79 | } |
75 | 80 | }, |
76 | 81 |
|
|
93 | 98 | { |
94 | 99 | "type": "object", |
95 | 100 | "properties": { |
96 | | - "context": {"type": "string"}, |
97 | | - "dockerfile": {"type": "string"}, |
| 101 | + "context": {"type": "string", "description": "The context used for building the image"}, |
| 102 | + "dockerfile": {"type": "string", "description": "The Dockerfile used for building the image"}, |
98 | 103 | "dockerfile_inline": {"type": "string"}, |
99 | 104 | "entitlements": {"type": "array", "items": {"type": "string"}}, |
100 | | - "args": {"$ref": "#/definitions/list_or_dict"}, |
| 105 | + "args": {"$ref": "#/definitions/list_or_dict", "description": "Arguments used during the image build process"}, |
101 | 106 | "ssh": {"$ref": "#/definitions/list_or_dict"}, |
102 | 107 | "labels": {"$ref": "#/definitions/list_or_dict"}, |
103 | 108 | "cache_from": {"type": "array", "items": {"type": "string"}}, |
|
152 | 157 | "cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
153 | 158 | "cgroup": {"type": "string", "enum": ["host", "private"]}, |
154 | 159 | "cgroup_parent": {"type": "string"}, |
155 | | - "command": {"$ref": "#/definitions/command"}, |
| 160 | + "command": {"$ref": "#/definitions/command", "description": "The command that will be run in the container"}, |
156 | 161 | "configs": {"$ref": "#/definitions/service_config_or_secret"}, |
157 | | - "container_name": {"type": "string"}, |
| 162 | + "container_name": {"type": "string", "description": "The name that will be given to the container"}, |
158 | 163 | "cpu_count": {"oneOf": [ |
159 | 164 | {"type": "string"}, |
160 | 165 | {"type": "integer", "minimum": 0} |
|
206 | 211 | } |
207 | 212 | } |
208 | 213 | } |
209 | | - ] |
| 214 | + ], |
| 215 | + "description": "Other services that this service depends on, which will be started before this one" |
210 | 216 | }, |
211 | 217 | "device_cgroup_rules": {"$ref": "#/definitions/list_of_strings"}, |
212 | 218 | "devices": { |
|
232 | 238 | "dns_opt": {"type": "array","items": {"type": "string"}, "uniqueItems": true}, |
233 | 239 | "dns_search": {"$ref": "#/definitions/string_or_list"}, |
234 | 240 | "domainname": {"type": "string"}, |
235 | | - "entrypoint": {"$ref": "#/definitions/command"}, |
236 | | - "env_file": {"$ref": "#/definitions/env_file"}, |
| 241 | + "entrypoint": {"$ref": "#/definitions/command", "description": "The entrypoint to the application in the container"}, |
| 242 | + "env_file": {"$ref": "#/definitions/env_file", "description": "Files containing environment variables that will be included"}, |
237 | 243 | "label_file": {"$ref": "#/definitions/label_file"}, |
238 | | - "environment": {"$ref": "#/definitions/list_or_dict"}, |
| 244 | + "environment": {"$ref": "#/definitions/list_or_dict", "description": "Environment variables that will be included"}, |
239 | 245 |
|
240 | 246 | "expose": { |
241 | 247 | "type": "array", |
242 | 248 | "items": { |
243 | 249 | "type": ["string", "number"] |
244 | 250 | }, |
245 | | - "uniqueItems": true |
| 251 | + "uniqueItems": true, |
| 252 | + "description": "Ports exposed to the other services but not to the host machine" |
246 | 253 | }, |
247 | 254 | "extends": { |
248 | 255 | "oneOf": [ |
|
283 | 290 | }, |
284 | 291 | "uniqueItems": true |
285 | 292 | }, |
286 | | - "healthcheck": {"$ref": "#/definitions/healthcheck"}, |
| 293 | + "healthcheck": {"$ref": "#/definitions/healthcheck", "description": "A command for checking if the container is healthy"}, |
287 | 294 | "hostname": {"type": "string"}, |
288 | | - "image": {"type": "string"}, |
| 295 | + "image": {"type": "string", "description": "The image that will be pulled for the service. If `build` is specified, the built image will be given this tag."}, |
289 | 296 | "init": {"type": ["boolean", "string"]}, |
290 | 297 | "ipc": {"type": "string"}, |
291 | 298 | "isolation": {"type": "string"}, |
292 | | - "labels": {"$ref": "#/definitions/list_or_dict"}, |
| 299 | + "labels": {"$ref": "#/definitions/list_or_dict", "description": "Labels that will be given to the container"}, |
293 | 300 | "links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
294 | 301 | "logging": { |
295 | 302 | "type": "object", |
|
303 | 310 | } |
304 | 311 | }, |
305 | 312 | "additionalProperties": false, |
306 | | - "patternProperties": {"^x-": {}} |
| 313 | + "patternProperties": {"^x-": {}}, |
| 314 | + "description": "Settings for logging for this service" |
307 | 315 | }, |
308 | 316 | "mac_address": {"type": "string"}, |
309 | 317 | "mem_limit": {"type": ["number", "string"]}, |
|
346 | 354 | }, |
347 | 355 | "additionalProperties": false |
348 | 356 | } |
349 | | - ] |
| 357 | + ], |
| 358 | + "description": "The service will be included in these networks, allowing it to reach other containers on the same network" |
350 | 359 | }, |
351 | 360 | "oom_kill_disable": {"type": ["boolean", "string"]}, |
352 | 361 | "oom_score_adj": {"oneOf": [ |
|
378 | 387 | } |
379 | 388 | ] |
380 | 389 | }, |
381 | | - "uniqueItems": true |
| 390 | + "uniqueItems": true, |
| 391 | + "description": "Ports that will be exposed to the host" |
382 | 392 | }, |
383 | 393 | "post_start": {"type": "array", "items": {"$ref": "#/definitions/service_hook"}}, |
384 | 394 | "pre_stop": {"type": "array", "items": {"$ref": "#/definitions/service_hook"}}, |
385 | 395 | "privileged": {"type": ["boolean", "string"]}, |
386 | | - "profiles": {"$ref": "#/definitions/list_of_strings"}, |
| 396 | + "profiles": {"$ref": "#/definitions/list_of_strings", "description": "Profiles that this service is a part of. When the profile is started, this service will be started."}, |
387 | 397 | "pull_policy": {"type": "string", |
388 | 398 | "pattern": "always|never|build|if_not_present|missing|refresh|daily|weekly|every_([0-9]+[wdhms])+" |
389 | 399 | }, |
|
398 | 408 | }, |
399 | 409 | "security_opt": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, |
400 | 410 | "shm_size": {"type": ["number", "string"]}, |
401 | | - "secrets": {"$ref": "#/definitions/service_config_or_secret"}, |
| 411 | + "secrets": {"$ref": "#/definitions/service_config_or_secret", "description": "Secrets the service will have access to"}, |
402 | 412 | "sysctls": {"$ref": "#/definitions/list_or_dict"}, |
403 | 413 | "stdin_open": {"type": ["boolean", "string"]}, |
404 | 414 | "stop_grace_period": {"type": "string"}, |
|
407 | 417 | "tmpfs": {"$ref": "#/definitions/string_or_list"}, |
408 | 418 | "tty": {"type": ["boolean", "string"]}, |
409 | 419 | "ulimits": {"$ref": "#/definitions/ulimits"}, |
410 | | - "user": {"type": "string"}, |
| 420 | + "user": {"type": "string", "description": "The username under which the app in the container will be started"}, |
411 | 421 | "uts": {"type": "string"}, |
412 | 422 | "userns_mode": {"type": "string"}, |
413 | 423 | "volumes": { |
|
475 | 485 | } |
476 | 486 | ] |
477 | 487 | }, |
478 | | - "uniqueItems": true |
| 488 | + "uniqueItems": true, |
| 489 | + "description": "Named volumes and paths on the host mapped to paths in the container" |
479 | 490 | }, |
480 | 491 | "volumes_from": { |
481 | 492 | "type": "array", |
482 | 493 | "items": {"type": "string"}, |
483 | 494 | "uniqueItems": true |
484 | 495 | }, |
485 | | - "working_dir": {"type": "string"} |
| 496 | + "working_dir": {"type": "string", "description": "The working directory in which the entrypoint or command will be run"} |
486 | 497 | }, |
487 | 498 | "patternProperties": {"^x-": {}}, |
488 | 499 | "additionalProperties": false |
|
710 | 721 | "type": ["object", "null"], |
711 | 722 | "properties": { |
712 | 723 | "name": {"type": "string"}, |
713 | | - "driver": {"type": "string"}, |
| 724 | + "driver": {"type": "string", "description": "The driver used for this network"}, |
714 | 725 | "driver_opts": { |
715 | 726 | "type": "object", |
716 | 727 | "patternProperties": { |
|
773 | 784 | "type": ["object", "null"], |
774 | 785 | "properties": { |
775 | 786 | "name": {"type": "string"}, |
776 | | - "driver": {"type": "string"}, |
| 787 | + "driver": {"type": "string", "description": "The driver used for this volume"}, |
777 | 788 | "driver_opts": { |
778 | 789 | "type": "object", |
779 | 790 | "patternProperties": { |
|
0 commit comments