Skip to content

Commit 69d85fe

Browse files
committed
fix(deploy): vps
1 parent c9393ce commit 69d85fe

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

deployment/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
image: lucky7-front:latest
44
build:
55
context: ../lucky7-app/frontend
6+
dockerfile: Dockerfile
67
args:
78
NEXT_BASE_PATH: /Lucky7
89
NEXT_PUBLIC_BACKEND_URL: http://78.138.58.95/Lucky7-api
@@ -16,6 +17,7 @@ services:
1617
image: lucky7-back:latest
1718
build:
1819
context: ../lucky7-app/backend
20+
dockerfile: Dockerfile
1921
restart: unless-stopped
2022
ports:
2123
- "127.0.0.1:4001:4000"

lucky7-app/frontend/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ FROM node:20-alpine AS builder
44
WORKDIR /usr/src/app
55

66
ARG NEXT_BASE_PATH="/Lucky7"
7+
ARG NEXT_PUBLIC_BACKEND_URL="http://78.138.58.95/Lucky7-api"
78
ENV NEXT_BASE_PATH=$NEXT_BASE_PATH
8-
9-
ARG NEXT_PUBLIC_BACKEND_URL="http://localhost:4000"
109
ENV NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL
1110

1211
COPY package*.json ./

0 commit comments

Comments
 (0)