Commit 5c70caf7 authored by Ahmad Khalidi's avatar Ahmad Khalidi Committed by Alexander Povel

add host and adjust ports in deploy.yaml

parent d6b28c1e
Pipeline #82486 canceled with stages
FROM python:3
ENV STATIC_URL /static
ENV STATIC_PATH /var/www/app/static
WORKDIR /usr/src/app
COPY requirements.txt ./
......@@ -7,6 +10,4 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD [ "python", "./server.py" ]
......@@ -20,7 +20,7 @@ spec:
name: air
imagePullPolicy: "Always"
ports:
- containerPort: 8080
- containerPort: 5000
protocol: TCP
imagePullSecrets:
- name: secret123
......@@ -36,7 +36,7 @@ spec:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
targetPort: 5000
selector:
service: air
type: ClusterIP
......@@ -41,5 +41,5 @@ def getLuftdaten():
return jsonify(result)
if __name__ == "__main__":
app.run(debug=True, port=8080)
app.run(debug=True, host='0.0.0.0')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment