-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: client development configuration
Signed-off-by: Quentin Guidée <[email protected]>
- Loading branch information
1 parent
53121c8
commit 8eb9c51
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.yarn | ||
node_modules | ||
.pnp.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
run: | ||
docker-compose -f docker/docker-compose.yml -f docker/docker-compose.build.yml up --build | ||
|
||
run-release: | ||
docker-compose -f docker/docker-compose.yml up | ||
|
||
run-dev: | ||
docker-compose -f docker/docker-compose.yml -f docker/docker-compose.dev.yml up --build | ||
|
||
clean: | ||
docker-compose -f docker/docker-compose.yml down --rmi all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node:alpine3.19 | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN corepack enable | ||
RUN yarn install --frozen-lockfile | ||
|
||
EXPOSE 5173 | ||
|
||
CMD ["yarn", "workspace", "@vertex-center/client", "dev", "--host"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: '3.8' | ||
|
||
services: | ||
client: | ||
build: | ||
context: .. | ||
dockerfile: client/docker/dev.Dockerfile | ||
volumes: | ||
- ../client:/app/client | ||
- ../packages:/app/packages | ||
ports: | ||
- "5173:5173" | ||
|
||
vertex: | ||
build: | ||
context: ../server | ||
dockerfile: docker/bundle.Dockerfile | ||
args: | ||
- APP_KIND=main | ||
|
||
vertex-kernel: | ||
build: | ||
context: ../server | ||
dockerfile: docker/bundle.Dockerfile | ||
args: | ||
- APP_KIND=kernel |