mirror of
https://github.com/luxfi/markets.git
synced 2026-10-30 16:19:55 +00:00
- Dashboard, token list, token detail, DEX pairs pages - REST API at /api/v1/markets/* (dashboard, tokens, pairs, health) - White-label tenant resolution from hostname - Embeddable widgets via /embed/ with <2KB loader script - CoinGecko free API integration with in-memory cache - Lux DEX pairs (stub for indexer integration) - Tailwind dark theme, lightweight-charts for price data
79 lines
1.5 KiB
YAML
79 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: markets
|
|
namespace: lux
|
|
labels:
|
|
app: markets
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: markets
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: markets
|
|
spec:
|
|
containers:
|
|
- name: markets
|
|
image: ghcr.io/luxfi/markets:latest
|
|
ports:
|
|
- containerPort: 3000
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: markets
|
|
namespace: lux
|
|
spec:
|
|
selector:
|
|
app: markets
|
|
ports:
|
|
- port: 80
|
|
targetPort: 3000
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: markets
|
|
namespace: lux
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
spec:
|
|
ingressClassName: hanzo
|
|
tls:
|
|
- hosts:
|
|
- markets.lux.network
|
|
secretName: markets-tls
|
|
rules:
|
|
- host: markets.lux.network
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: markets
|
|
port:
|
|
number: 80
|