fix: docker compose force build in dev env

This commit is contained in:
Mohamed Marrouchi 2024-09-21 06:43:34 +01:00
parent 9f3aefcb72
commit bb52f2a1d5

View File

@ -4,6 +4,7 @@ services:
database-init: database-init:
build: build:
context: ../api context: ../api
pull_policy: build
volumes: volumes:
- ../api/src:/app/src - ../api/src:/app/src
- ../api/migrations:/app/migrations - ../api/migrations:/app/migrations
@ -12,6 +13,7 @@ services:
api: api:
build: build:
context: ../api context: ../api
pull_policy: build
ports: ports:
- ${API_PORT}:3000 - ${API_PORT}:3000
- 9229:9229 # vscode debug port - 9229:9229 # vscode debug port
@ -39,11 +41,13 @@ services:
build: build:
context: ../ context: ../
dockerfile: ./frontend/Dockerfile dockerfile: ./frontend/Dockerfile
pull_policy: build
widget: widget:
build: build:
context: ../widget context: ../widget
target: development target: development
pull_policy: build
volumes: volumes:
- ../widget/src:/app/src - ../widget/src:/app/src
ports: ports: