fix: Change nginx to port 8080 (non-root user can't bind to 80)
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
+2
-2
@@ -65,8 +65,8 @@ RUN echo '#!/bin/sh' > /app/start.sh && \
|
|||||||
# Switch to non-root user
|
# Switch to non-root user
|
||||||
USER nodejs
|
USER nodejs
|
||||||
|
|
||||||
# Expose ports (3000 for API, 80 for frontend)
|
# Expose ports (3000 for API, 8080 for frontend)
|
||||||
EXPOSE 3000 80
|
EXPOSE 3000 8080
|
||||||
|
|
||||||
# Start both nginx and node
|
# Start both nginx and node
|
||||||
CMD ["/app/start.sh"]
|
CMD ["/app/start.sh"]
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ services:
|
|||||||
- "traefik.http.routers.minio-webui.rule=Host(`minio-webui.local.nothaft.cloud`)"
|
- "traefik.http.routers.minio-webui.rule=Host(`minio-webui.local.nothaft.cloud`)"
|
||||||
- "traefik.http.routers.minio-webui.entrypoints=https"
|
- "traefik.http.routers.minio-webui.entrypoints=https"
|
||||||
- "traefik.http.routers.minio-webui.tls.certresolver=dns"
|
- "traefik.http.routers.minio-webui.tls.certresolver=dns"
|
||||||
- "traefik.http.services.minio-webui.loadbalancer.server.port=80"
|
- "traefik.http.services.minio-webui.loadbalancer.server.port=8080"
|
||||||
- "traefik.docker.network=proxy"
|
- "traefik.docker.network=proxy"
|
||||||
# Homepage integration
|
# Homepage integration
|
||||||
- "homepage.group=Infrastructure"
|
- "homepage.group=Infrastructure"
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 8080;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
root /app/public;
|
root /app/public;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user