import { TextTip } from '@@/Tip/TextTip'; interface Props { isSwarm: boolean; composeSyntaxMaxVersion?: number; } export function DeploymentInfo({ isSwarm, composeSyntaxMaxVersion }: Props) { if (isSwarm) { return (
This stack will be deployed using the equivalent of the{' '} docker stack deploy command.
); } if (composeSyntaxMaxVersion === 2) { return (
This stack will be deployed using the equivalent of{' '} docker compose. Only Compose file format version{' '} 2 is supported at the moment.
Note: Due to a limitation of libcompose, the name of the stack will be standardized to remove all special characters and uppercase letters.
); } return (
This stack will be deployed using docker compose.
); }