From 63f7f38c9fbe561cd102e9924f5666ba41421eab Mon Sep 17 00:00:00 2001 From: Mitch Ross Date: Fri, 3 Jan 2025 18:16:48 -0500 Subject: [PATCH] fix https://github.com/ItzCrazyKns/Perplexica/issues/145 --- app.dockerfile | 6 ++---- docker-compose.yaml | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app.dockerfile b/app.dockerfile index 488e64b..5adf61e 100644 --- a/app.dockerfile +++ b/app.dockerfile @@ -1,9 +1,7 @@ FROM node:20.18.0-alpine -ARG NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001 -ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api -ENV NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL} -ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL} +ENV NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001 +ENV NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api WORKDIR /home/perplexica diff --git a/docker-compose.yaml b/docker-compose.yaml index a0e1d73..e3b903d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -34,10 +34,10 @@ services: build: context: . dockerfile: app.dockerfile - args: - - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api - - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001 image: itzcrazykns1337/perplexica-frontend:main + environment: + - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api + - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001 depends_on: - perplexica-backend ports: