Skip to content

Commit

Permalink
feat: try new deploy solution #38
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Apr 13, 2024
1 parent 66b0588 commit 72b86f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@ RUN apt-get update && apt-get install -y vim
RUN npm install -g pnpm serve pm2
# Set the working directory
WORKDIR /app
COPY . /app

ARG BACKEND_URL
ENV VITE_BACKEND_URL=$BACKEND_URL
RUN echo "The backend URL is $BACKEND_URL"
RUN mkdir /app/temp

RUN pnpm install
RUN pnpm build:all
12 changes: 10 additions & 2 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
services:
# application service
backend:
image: ghcr.io/golemfactory/deposit_example:${DEPLOY_BRANCH:-latest}
build:
context: ../
dockerfile: Dockerfile
command: pnpm run start
working_dir: /app/backend
environment:
Expand All @@ -21,9 +23,13 @@ services:
depends_on:
- yagna
- mongo
volumes:
- ../:/app

frontend:
image: ghcr.io/golemfactory/deposit_example:${DEPLOY_BRANCH:-latest}
build:
context: ../
dockerfile: Dockerfile
command: pnpm run start
working_dir: /app/frontend
environment:
Expand All @@ -42,6 +48,8 @@ services:
- "3000:3000"
depends_on:
- backend
volumes:
- ../:/app
# yagna service
yagna:
build:
Expand Down

0 comments on commit 72b86f6

Please sign in to comment.