Skip to content

Commit

Permalink
dockerize label with hot reload & network on sder repository
Browse files Browse the repository at this point in the history
  • Loading branch information
juliengrach-cassation committed Sep 2, 2024
1 parent eb0158a commit 72e6a73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@ services:
command: mongod --port 55431
volumes:
- mongo-storage:/data/db
expose:
- 55431
ports:
- 55431:55431

backend:
label-backend:
build:
context: ./
dockerfile: Dockerfile.label.local
ports:
- "55430:55430"
- 55430:55430
depends_on:
- labelDb
environment:
- RUN_MODE=LOCAL
env_file:
- .env
- docker.env
volumes:
- .:/home/node
client:

label-client:
build:
context: ./
dockerfile: Dockerfile.label.local
ports:
- "55432:55432"
- 55432:55432
depends_on:
- labelDb
- label-backend
environment:
- RUN_MODE=LOCAL
env_file:
- .env
- docker.env
volumes:
- .:/home/node
command: "yarn start:client:dev"
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"docker:start:backend": "docker compose -f docker-compose-dev.yml up",
"docker:start:db": "docker compose -f docker-compose-dev.yml up -d labelDb",
"docker:stop:db": "docker compose -f docker-compose-dev.yml down labelDb",
"docker:start": "docker compose -f docker-compose-local.yml up -d",
"docker:stop": "docker compose -f docker-compose-local.yml down",
"docker:kill": "docker compose -f docker-compose-local.yml down --remove-orphans --volumes --rmi all",
"docker:logs": "docker compose -f docker-compose-local.yml logs --follow",
"fix": "lerna run fix",
"init:db": "scripts/initializeTestDb.sh",
"lint": "lerna run lint",
Expand Down

0 comments on commit 72e6a73

Please sign in to comment.