feat: detach widget docker service

This commit is contained in:
Mohamed Marrouchi
2024-10-12 10:26:38 +01:00
parent 6669361438
commit b08ee24fc3
5 changed files with 604 additions and 21 deletions

View File

@@ -36,13 +36,3 @@ services:
pull_policy: build
volumes:
- ../frontend/:/app/frontend/
widget:
build:
context: ../widget
target: development
pull_policy: build
volumes:
- ../widget/src:/app/src
ports:
- ${APP_WIDGET_PORT}:5173

View File

@@ -0,0 +1,12 @@
version: "3.9"
services:
widget:
build:
context: ../widget
target: development
pull_policy: build
volumes:
- ../widget/src:/app/src
ports:
- ${APP_WIDGET_PORT}:5173

View File

@@ -0,0 +1,13 @@
version: "3.9"
services:
widget:
container_name: widget
image: hexastack/hexabot-widget:latest
networks:
- app-network
depends_on:
api:
condition: service_healthy
ports:
- ${APP_WIDGET_PORT}:5173

View File

@@ -52,17 +52,6 @@ services:
volumes:
- mongo-data:/data/db
widget:
container_name: widget
image: hexastack/hexabot-widget:latest
networks:
- app-network
depends_on:
api:
condition: service_healthy
ports:
- ${APP_WIDGET_PORT}:5173
volumes:
mongo-data:
api-data: