forked from coollabsio/coolify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented typing for dockerfile configuration
- Loading branch information
1 parent
3ef093c
commit f1313b6
Showing
13 changed files
with
73 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { makeLabelForServices } from '../buildPacks/common'; | ||
|
||
export type ComposeFile = { | ||
version: ComposerFileVersion; | ||
services: Record<string, ComposeFileService>; | ||
networks: Record<string, ComposeFileNetwork>; | ||
volumes?: Record<string, ComposeFileVolume>; | ||
}; | ||
|
||
export type ComposeFileService = { | ||
container_name: string; | ||
image?: string; | ||
networks: string[]; | ||
environment: Record<string, unknown>; | ||
volumes?: string[]; | ||
ulimits?: unknown; | ||
labels?: string[]; | ||
restart: ComposeFileRestartOption; | ||
depends_on?: string[]; | ||
command?: string; | ||
build?: string; | ||
}; | ||
|
||
export type ComposerFileVersion = | ||
| '3.8' | ||
| '3.7' | ||
| '3.6' | ||
| '3.5' | ||
| '3.4' | ||
| '3.3' | ||
| '3.2' | ||
| '3.1' | ||
| '3.0' | ||
| '2.4' | ||
| '2.3' | ||
| '2.2' | ||
| '2.1' | ||
| '2.0'; | ||
|
||
export type ComposeFileRestartOption = 'no' | 'always' | 'on-failure' | 'unless-stopped'; | ||
|
||
export type ComposeFileNetwork = { | ||
external: boolean; | ||
}; | ||
|
||
export type ComposeFileVolume = { | ||
external?: boolean; | ||
name?: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters