mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 03:56:15 -08:00
chore: introduce BACKEND_URL for docker deployment
This commit is contained in:
1 parent
8c1a525001
commit
7a4bce7c31
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -28,4 +28,4 @@ FROM nginx:stable-alpine
|
||||
COPY --from=build /usr/src/app/dist/ /usr/share/nginx/html
|
||||
COPY --from=build /usr/src/app/docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
CMD sed -i "s/localhost:3333/localhost:$BACKEND_PORT/g" /usr/share/nginx/html/main.*.js && nginx -g 'daemon off;'
|
||||
CMD sed -i "s#http://localhost:3333#$BACKEND_URL#g" /usr/share/nginx/html/main.*.js && nginx -g 'daemon off;'
|
||||
@@ -6,12 +6,12 @@ services:
|
||||
ports:
|
||||
- "7333:3000"
|
||||
environment:
|
||||
- CLIENT_URL=http://localhost:4333
|
||||
- CLIENT_URL=http://localhost:4333 #this one should match with the address and port in frontend CLIENT_URL env
|
||||
|
||||
frontend:
|
||||
image: 4gray/iptvnator:latest
|
||||
ports:
|
||||
- "4333:80" #this one should match with the port in CLIENT_URL env
|
||||
- "4333:80"
|
||||
environment:
|
||||
- BACKEND_PORT=7333 # this one should match with the exposed port of the backend service
|
||||
- BACKEND_URL=http://192.168.172.67:7333 # this one should match with the address of the backend service
|
||||
|
||||
Reference in new issue
Block a user