Frontend fix
This commit is contained in:
parent
a3cd4f8168
commit
7fc266c7a6
|
@ -0,0 +1,9 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
image: amusement3004/safeshare-frontend:latest
|
||||
restart:
|
||||
always
|
||||
ports:
|
||||
- "80:80" # Map container port 3000 to host port 3000
|
|
@ -5,6 +5,8 @@ WORKDIR /frontend
|
|||
|
||||
COPY . .
|
||||
|
||||
ENV REACT_APP_API_HOST http://127.0.0.1:8000
|
||||
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ server {
|
|||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://safeshare-backend-service:8000;
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Reference in New Issue