Skip to content

Commit 3c96ad2

Browse files
committed
Deployment
1 parent ffc2520 commit 3c96ad2

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ services:
189189
context: ./user-service
190190
dockerfile: Dockerfile
191191
environment:
192-
SPRING_PROFILES_ACTIVE: "docker"
192+
- SPRING_PROFILES_ACTIVE=docker
193+
- JWT_SECRET=D4fN8Qr6Zu1WgX9Cv3PyL5Mk2Jh7Vt0s
193194
ports:
194195
- "8000:8080"
195196
networks:

kubernetes/api-gateway-deployment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ spec:
2323
env:
2424
- name: SPRING_PROFILES_ACTIVE
2525
value: "k8s"
26+
- name: JWT_SECRET
27+
valueFrom:
28+
secretKeyRef:
29+
name: jwt-secret
30+
key: secret
2631
resources:
2732
limits:
2833
memory: "700Mi"

kubernetes/user-service-deployment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ spec:
3838
secretKeyRef:
3939
name: postgres-secret
4040
key: host
41+
- name: JWT_SECRET
42+
valueFrom:
43+
secretKeyRef:
44+
name: jwt-secret
45+
key: secret
4146
resources:
4247
limits:
4348
memory: "1Gi"

0 commit comments

Comments
 (0)