add postgres and refactor code

This commit is contained in:
andrusyakka
2023-07-17 13:59:44 +03:00
parent 94d2a1df2b
commit 6a386e38cf
15 changed files with 107 additions and 47 deletions

View File

@@ -28,7 +28,7 @@ spec:
- name: PORT
value: {{ .Values.app.server.port | quote }}
- name: CONNECTION_STRING
value: /app/test.db
value: {{ .Values.app.db.connection_string }}
{{- .Values.envs | toYaml | nindent 12 }}
image: {{ .Values.app.image }}:{{ .Chart.AppVersion }}

View File

@@ -1,6 +1,8 @@
app:
fullName: ${CI_PROJECT_TITLE}
image: docker-registry.dopcore.com/${CI_PROJECT_PATH}
db:
connection_string: ${CONNECTION_STRING}
server:
port: ${SERVICE_PORT}