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
|
||||
USER nodejs
|
||||
|
||||
# Expose ports (3000 for API, 80 for frontend)
|
||||
EXPOSE 3000 80
|
||||
# Expose ports (3000 for API, 8080 for frontend)
|
||||
EXPOSE 3000 8080
|
||||
|
||||
# Start both nginx and node
|
||||
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.entrypoints=https"
|
||||
- "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"
|
||||
# Homepage integration
|
||||
- "homepage.group=Infrastructure"
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen 8080;
|
||||
server_name localhost;
|
||||
root /app/public;
|
||||
index index.html;
|
||||
|
||||
Reference in New Issue
Block a user