41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dsmr
|
|
labels:
|
|
app: dsmr
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: dsmr
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: dsmr
|
|
spec:
|
|
containers:
|
|
- name: dsmr
|
|
image: xirixiz/dsmr-reader-docker:latest
|
|
env:
|
|
- name: TZ
|
|
value: "Europe/Amsterdam"
|
|
- name: VIRTUAL_HOST
|
|
value: "localhost"
|
|
- name: DJANGO_DATABASE_HOST
|
|
value: "postgres-postgresql"
|
|
- name: DJANGO_DATABASE_USER
|
|
value: "dsmr"
|
|
- name: DJANGO_DATABASE_PASSWORD
|
|
value: "iWoo5Paa3johPhooshah"
|
|
- name: DJANGO_DATABASE_NAME
|
|
value: "dsmr"
|
|
- name: DJANGO_DATABASE_ENGINE
|
|
value: django.db.backends.postgresql
|
|
- name: DSMRREADER_REMOTE_DATALOGGER_MODE
|
|
value: standalone
|
|
- name: SECRET_KEY
|
|
value: "ohB8oogh6livaeyingoo"
|
|
ports:
|
|
- containerPort: 7777
|