Compare commits
2 Commits
649ec54886
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d35061cbd3 | ||
|
|
9f4d38a1fe |
@@ -8,8 +8,8 @@ COPY src /app
|
|||||||
|
|
||||||
ENV FLASK_APP=app.py
|
ENV FLASK_APP=app.py
|
||||||
ENV FLASK_RUN_HOST=0.0.0.0
|
ENV FLASK_RUN_HOST=0.0.0.0
|
||||||
ENV FLASK_RUN_PORT=5002
|
ENV FLASK_RUN_PORT=5000
|
||||||
|
|
||||||
EXPOSE 5002
|
EXPOSE 5000
|
||||||
|
|
||||||
CMD ["python", "app.py"]
|
CMD ["python", "app.py"]
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "sigra.labels" . | nindent 4 }}
|
{{- include "sigra.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: {{ .Values.ingress.className }}
|
|
||||||
rules:
|
rules:
|
||||||
- host: {{ .Values.ingress.host }}
|
- host: {{ .Values.ingress.host }}
|
||||||
http:
|
http:
|
||||||
|
|||||||
@@ -7,11 +7,10 @@ image:
|
|||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 5002
|
port: 5000
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: nginx
|
|
||||||
host: sigra.k3s.itphx.loc
|
host: sigra.k3s.itphx.loc
|
||||||
path: /
|
path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
|||||||
@@ -73,4 +73,5 @@ def edit_question(cat, q):
|
|||||||
return render_template('edit.html', question=question, cat=cat, q=q)
|
return render_template('edit.html', question=question, cat=cat, q=q)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True, port=5002)
|
port = int(os.environ.get('FLASK_RUN_PORT', 5000))
|
||||||
|
app.run(debug=True, host='0.0.0.0', port=port)
|
||||||
|
|||||||
Reference in New Issue
Block a user