fix: listen on port 8080 for non-root container
This commit is contained in:
+1
-1
@@ -45,6 +45,6 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
USER nginx-user
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
+2
-2
@@ -24,11 +24,11 @@ spec:
|
||||
- name: batida-landing
|
||||
image: git.batida.io/batida/batida-landing:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 8080
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
port: 8080
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 30
|
||||
resources:
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen 8080;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user