Add custom app example

This commit is contained in:
Lev Vereshchagin
2021-12-16 22:34:11 +03:00
parent e6d80db704
commit fc0ee586b1
7 changed files with 151 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
APP_NAME="custom_app"
variable "FRAPPE_VERSION" {}
group "default" {
targets = ["backend", "frontend"]
}
target "backend" {
dockerfile = "backend.Dockerfile"
tags = ["custom_app/worker:latest"]
args = {
"FRAPPE_VERSION" = FRAPPE_VERSION
"APP_NAME" = APP_NAME
}
}
target "frontend" {
dockerfile = "frontend.Dockerfile"
tags = ["custom_app/nginx:latest"]
args = {
"FRAPPE_VERSION" = FRAPPE_VERSION
"APP_NAME" = APP_NAME
}
}