- update: auto generate the database url using the saved secret
This commit is contained in:
@@ -20,9 +20,14 @@ spec:
|
||||
image: "{{ $.Values.repository }}/{{ .image }}"
|
||||
ports:
|
||||
- containerPort: {{ .port }}
|
||||
env:
|
||||
- name: DATABASE_URL
|
||||
value: "postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@postgres:5432/$(POSTGRES_DB)"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ .name }}-env
|
||||
- secretRef:
|
||||
name: postgres-secrets
|
||||
volumeMounts:
|
||||
- name: service-ids
|
||||
mountPath: /services
|
||||
|
||||
@@ -8,7 +8,7 @@ global:
|
||||
env:
|
||||
LOG_LEVEL: "info"
|
||||
APP_ENV: "dev"
|
||||
DATABASE_URL: "postgres://postgres:5432/osirose"
|
||||
DATABASE_URL: "" # This is a placeholder. Will be dynamically constructed
|
||||
|
||||
services:
|
||||
- name: api-service
|
||||
|
||||
Reference in New Issue
Block a user