aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compose-develop.yaml16
-rw-r--r--compose.yaml16
2 files changed, 20 insertions, 12 deletions
diff --git a/compose-develop.yaml b/compose-develop.yaml
new file mode 100644
index 0000000..1ad1fa0
--- /dev/null
+++ b/compose-develop.yaml
@@ -0,0 +1,16 @@
+services:
+ web:
+ extends:
+ file: compose.yaml
+ service: web
+ develop:
+ watch:
+ - action: rebuild
+ path: Aamukampa.Frontend/
+ - action: rebuild
+ path: Aamukampa.Core/
+ - action: rebuild
+ path: Aamukampa.Web/
+ - action: sync
+ path: Aamukampa.Web/appsettings*.json
+ target: /app/
diff --git a/compose.yaml b/compose.yaml
index 328fd56..5db3300 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -1,17 +1,9 @@
services:
web:
- build: .
+ build:
+ context: .
+ tags:
+ - aamukampa-web:latest
ports:
- 5000:8080
restart: always
- develop:
- watch:
- - action: rebuild
- path: Aamukampa.Frontend/
- - action: rebuild
- path: Aamukampa.Core/
- - action: rebuild
- path: Aamukampa.Web/
- - action: sync
- path: Aamukampa.Web/appsettings*.json
- target: /app/