/** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export type ListOrDict = | { /** * This interface was referenced by `undefined`'s JSON-Schema definition * via the `patternProperty` ".+". */ [k: string]: string | number | null; } | string[]; export type ListOfStrings = string[]; export type StringOrList = string | ListOfStrings; export type Labels = | { /** * This interface was referenced by `undefined`'s JSON-Schema definition * via the `patternProperty` ".+". */ [k: string]: string; } | string[]; /** * This interface was referenced by `PropertiesVolumes`'s JSON-Schema definition * via the `patternProperty` "^[a-zA-Z0-9._-]+$". */ export type DefinitionsVolume = { [k: string]: any; } | null; export interface ConfigSchemaV20Json { version?: string; services?: PropertiesServices; networks?: PropertiesNetworks; volumes?: PropertiesVolumes; /** * This interface was referenced by `ConfigSchemaV20Json`'s JSON-Schema definition * via the `patternProperty` "^x-". */ [k: string]: any; } export interface PropertiesServices { [k: string]: DefinitionsService; } /** * This interface was referenced by `PropertiesServices`'s JSON-Schema definition * via the `patternProperty` "^[a-zA-Z0-9._-]+$". */ export interface DefinitionsService { blkio_config?: { device_read_bps?: BlkioLimit[]; device_read_iops?: BlkioLimit[]; device_write_bps?: BlkioLimit[]; device_write_iops?: BlkioLimit[]; weight?: number; weight_device?: BlkioWeight[]; }; build?: | string | { context?: string; dockerfile?: string; args?: ListOrDict; }; cap_add?: string[]; cap_drop?: string[]; cgroup_parent?: string; command?: string | string[]; container_name?: string; cpu_shares?: number | string; cpu_quota?: number | string; cpuset?: string; depends_on?: ListOfStrings; devices?: string[]; dns?: StringOrList; dns_opt?: string[]; dns_search?: StringOrList; domainname?: string; entrypoint?: string | string[]; env_file?: StringOrList; environment?: ListOrDict; expose?: (string | number)[]; extends?: | string | { service: string; file?: string; }; external_links?: string[]; extra_hosts?: ListOrDict; hostname?: string; image?: string; ipc?: string; labels?: Labels; links?: string[]; logging?: { driver?: string; options?: { [k: string]: any; }; }; mac_address?: string; mem_limit?: number | string; mem_reservation?: string | number; mem_swappiness?: number; memswap_limit?: number | string; network_mode?: string; networks?: | ListOfStrings | { /** * This interface was referenced by `undefined`'s JSON-Schema definition * via the `patternProperty` "^[a-zA-Z0-9._-]+$". */ [k: string]: { aliases?: ListOfStrings; ipv4_address?: string; ipv6_address?: string; priority?: number; } | null; }; oom_score_adj?: number; group_add?: (string | number)[]; pid?: string | null; ports?: (string | number)[]; privileged?: boolean; read_only?: boolean; restart?: string; security_opt?: string[]; shm_size?: number | string; stdin_open?: boolean; stop_grace_period?: string; stop_signal?: string; tmpfs?: StringOrList; tty?: boolean; ulimits?: { /** * This interface was referenced by `undefined`'s JSON-Schema definition * via the `patternProperty` "^[a-z]+$". */ [k: string]: | number | { hard: number; soft: number; }; }; user?: string; volumes?: string[]; volume_driver?: string; volumes_from?: string[]; working_dir?: string; } export interface BlkioLimit { path?: string; rate?: number | string; } export interface BlkioWeight { path?: string; weight?: number; } export interface PropertiesNetworks { [k: string]: DefinitionsNetwork; } /** * This interface was referenced by `PropertiesNetworks`'s JSON-Schema definition * via the `patternProperty` "^[a-zA-Z0-9._-]+$". */ export interface DefinitionsNetwork { driver?: string; driver_opts?: { /** * This interface was referenced by `undefined`'s JSON-Schema definition * via the `patternProperty` "^.+$". */ [k: string]: string | number; }; ipam?: { driver?: string; config?: DefinitionsIpamConfig[]; options?: { /** * This interface was referenced by `undefined`'s JSON-Schema definition * via the `patternProperty` "^.+$". */ [k: string]: string; }; }; external?: | boolean | { [k: string]: any; }; internal?: boolean; } export interface DefinitionsIpamConfig { subnet?: string; ip_range?: string; gateway?: string; aux_addresses?: { /** * This interface was referenced by `undefined`'s JSON-Schema definition * via the `patternProperty` "^.+$". */ [k: string]: string; }; } export interface PropertiesVolumes { [k: string]: DefinitionsVolume; }