61 lines
2.0 KiB
YAML
61 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ghostfolio
|
|
namespace: ghostfolio
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ghostfolio
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ghostfolio
|
|
spec:
|
|
hostname: ghostfolio
|
|
subdomain: ghostfolio
|
|
containers:
|
|
- name: ghostfolio
|
|
image: ghostfolio/ghostfolio:2.147.0
|
|
ports:
|
|
- containerPort: 3333
|
|
env:
|
|
- name: DB_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-db
|
|
key: username
|
|
- name: DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-db
|
|
key: password
|
|
- name: DATABASE_URL
|
|
value: "postgresql://$(DB_USER):$(DB_PASSWORD)@ghostfolio-db-rw.ghostfolio.svc.cluster.local:5432/ghostfolio"
|
|
- name: NODE_ENV
|
|
value: production
|
|
- name: REDIS_HOST
|
|
value: ghostfolio-svc.ghostfolio.svc.cluster.local
|
|
- name: REDIS_PORT
|
|
value: "6379"
|
|
- name: ACCESS_TOKEN_SALT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-secrets
|
|
key: ACCESS_TOKEN_SALT
|
|
- name: API_KEY_COINGECKO_DEMO
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-secrets
|
|
key: API_KEY_COINGECKO_DEMO
|
|
- name: JWT_SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ghostfolio-secrets
|
|
key: JWT_SECRET_KEY
|
|
- name: redis
|
|
image: redis:7.4.2
|
|
ports:
|
|
- containerPort: 6379
|