44 lines
916 B
YAML
44 lines
916 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: backend
|
|
namespace: notes-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: backend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: backend
|
|
spec:
|
|
containers:
|
|
- name: backend
|
|
image: nihal0314/backend:latest # ✅ FIXED
|
|
env:
|
|
- name: DATABASE_URL
|
|
vvalue: postgresql://user:password@postgres:5432/notesdb
|
|
ports:
|
|
- containerPort: 5000
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontend
|
|
namespace: notes-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: nihal0314/frontend:latest # ✅ FIXED
|
|
ports:
|
|
- containerPort: 80 |