@deploystack/docker-to-iac
Version:
Translate docker run and docker compose file to Infrastructure as Code
18 lines (17 loc) • 403 B
TypeScript
interface DockerComposeService {
image: string;
ports?: string[];
command?: string;
restart?: string;
volumes?: string[];
environment?: {
[key: string]: string;
} | string[];
}
interface DockerCompose {
services: {
[key: string]: DockerComposeService;
};
}
export declare function validateDockerCompose(dockerCompose: DockerCompose): void;
export {};