gateway updated
parent
7b14e35684
commit
71f9d6792c
|
@ -2,8 +2,8 @@ apiVersion: v1
|
|||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
io.kompose.service: dl-db-gateway-claim0
|
||||
name: dl-db-gateway-claim0
|
||||
io.kompose.service: pv-db-gateway-claim0
|
||||
name: pv-db-gateway-claim0
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
|
@ -5,13 +5,13 @@ metadata:
|
|||
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: dl-db-gateway
|
||||
name: dl-db-gateway
|
||||
io.kompose.service: pv-db-gateway
|
||||
name: pv-db-gateway
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: dl-db-gateway
|
||||
io.kompose.service: pv-db-gateway
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
|
@ -20,26 +20,26 @@ spec:
|
|||
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: dl-db-gateway
|
||||
io.kompose.service: pv-db-gateway
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: POSTGRES_DB
|
||||
value: dl-db-gateway
|
||||
value: pv-db-gateway
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: Welcome@1
|
||||
- name: POSTGRES_USER
|
||||
value: humbingo
|
||||
image: postgres:16
|
||||
name: dl-db-gateway
|
||||
name: pv-db-gateway
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/postgresql/data
|
||||
name: dl-db-gateway-claim0
|
||||
name: pv-db-gateway-claim0
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: dl-db-gateway-claim0
|
||||
- name: pv-db-gateway-claim0
|
||||
persistentVolumeClaim:
|
||||
claimName: dl-db-gateway-claim0
|
||||
claimName: pv-db-gateway-claim0
|
|
@ -5,12 +5,12 @@ metadata:
|
|||
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: dl-db-gateway
|
||||
name: dl-db-gateway
|
||||
io.kompose.service: pv-db-gateway
|
||||
name: pv-db-gateway
|
||||
spec:
|
||||
ports:
|
||||
- name: "5433"
|
||||
port: 5433
|
||||
targetPort: 5432
|
||||
selector:
|
||||
io.kompose.service: dl-db-gateway
|
||||
io.kompose.service: pv-db-gateway
|
|
@ -4,9 +4,9 @@ data:
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
dl-gateway:
|
||||
image: git.humbingo.org/docker/dailyledger-gateway:v17
|
||||
container_name: dl-gateway
|
||||
pv-gateway:
|
||||
image: 147.79.66.211:3000/docker/paisavara-gateway:v19
|
||||
container_name: pv-gateway
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
|
@ -15,7 +15,7 @@ data:
|
|||
|
||||
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||
volumes:
|
||||
- .:/dl-gateway
|
||||
- .:/pv-gateway
|
||||
ports:
|
||||
- "8001:8000"
|
||||
labels:
|
||||
|
@ -23,17 +23,17 @@ data:
|
|||
- kompose.service.expose=true # Expose service externally
|
||||
- kompose.service.nodeport=30001
|
||||
depends_on:
|
||||
- dl-db-gateway
|
||||
- pv-db-gateway
|
||||
|
||||
dl-db-gateway:
|
||||
pv-db-gateway:
|
||||
image: postgres:16
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: humbingo
|
||||
POSTGRES_DB: dl-db-gateway
|
||||
POSTGRES_DB: pv-db-gateway
|
||||
POSTGRES_PASSWORD: Welcome@1
|
||||
volumes:
|
||||
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||
- ./pv-db-gateway:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5433:5432"
|
||||
|
||||
|
@ -297,5 +297,5 @@ data:
|
|||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
io.kompose.service: dl-gateway
|
||||
name: dl-gateway-cm0
|
||||
io.kompose.service: pv-gateway
|
||||
name: pv-gateway-cm0
|
|
@ -8,13 +8,13 @@ metadata:
|
|||
kompose.service.type: NodePort
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: dl-gateway
|
||||
name: dl-gateway
|
||||
io.kompose.service: pv-gateway
|
||||
name: pv-gateway
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: dl-gateway
|
||||
io.kompose.service: pv-gateway
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
|
@ -26,23 +26,23 @@ spec:
|
|||
kompose.service.type: NodePort
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: dl-gateway
|
||||
io.kompose.service: pv-gateway
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
- bash
|
||||
- -c
|
||||
- python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||
image: git.humbingo.org/docker/dailyledger-gateway:v20
|
||||
name: dl-gateway
|
||||
image: 147.79.66.211:3000/docker/paisavara-gateway:v19
|
||||
name: pv-gateway
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /dl-gateway
|
||||
name: dl-gateway-cm0
|
||||
- mountPath: /pv-gateway
|
||||
name: pv-gateway-cm0
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- configMap:
|
||||
name: dl-gateway-cm0
|
||||
name: dl-gateway-cm0
|
||||
name: pv-gateway-cm0
|
||||
name: pv-gateway-cm0
|
|
@ -8,15 +8,15 @@ metadata:
|
|||
kompose.service.type: NodePort
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: dl-gateway
|
||||
name: dl-gateway
|
||||
io.kompose.service: pv-gateway
|
||||
name: pv-gateway
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: dl-gateway
|
||||
name: pv-gateway
|
||||
port:
|
||||
number: 8001
|
||||
path: /
|
|
@ -8,8 +8,8 @@ metadata:
|
|||
kompose.service.type: NodePort
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: dl-gateway
|
||||
name: dl-gateway
|
||||
io.kompose.service: pv-gateway
|
||||
name: pv-gateway
|
||||
spec:
|
||||
ports:
|
||||
- name: "8001"
|
||||
|
@ -17,5 +17,5 @@ spec:
|
|||
targetPort: 8000
|
||||
nodePort: 30001
|
||||
selector:
|
||||
io.kompose.service: dl-gateway
|
||||
io.kompose.service: pv-gateway
|
||||
type: NodePort
|
Loading…
Reference in New Issue