files updated
parent
bf6a6aa9fb
commit
0ba5f4138e
|
@ -1,196 +0,0 @@
|
||||||
version: '4'
|
|
||||||
|
|
||||||
services:
|
|
||||||
dl-gateway:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-gateway:development
|
|
||||||
container_name: dl-gateway
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-gateway
|
|
||||||
ports:
|
|
||||||
- "8001:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30001
|
|
||||||
depends_on:
|
|
||||||
- dl-db-gateway
|
|
||||||
|
|
||||||
dl-db-gateway:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-gateway
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-gateway:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5433:5432"
|
|
||||||
|
|
||||||
|
|
||||||
dl-invoice:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-invoiceservice:development
|
|
||||||
container_name: dl-invoice
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-invoice
|
|
||||||
ports:
|
|
||||||
- "8002:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30002
|
|
||||||
depends_on:
|
|
||||||
- dl-db-invoice
|
|
||||||
|
|
||||||
dl-db-invoice:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-invoice
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-invoice:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5434:5432"
|
|
||||||
|
|
||||||
dl-generalledger:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-generalledger:development
|
|
||||||
container_name: dl-generalledger
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-generalledger
|
|
||||||
ports:
|
|
||||||
- "8003:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30003
|
|
||||||
depends_on:
|
|
||||||
- dl-db-generalledger
|
|
||||||
|
|
||||||
dl-db-generalledger:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-generalledger
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-generalledger:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5435:5432"
|
|
||||||
|
|
||||||
dl-utils:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-utils:development
|
|
||||||
container_name: dl-utils
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-utils
|
|
||||||
ports:
|
|
||||||
- "8004:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30004
|
|
||||||
depends_on:
|
|
||||||
- dl-db-utils
|
|
||||||
|
|
||||||
dl-db-utils:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-utils
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-utils:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5436:5432"
|
|
||||||
|
|
||||||
dl-subscription:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-subscription:development
|
|
||||||
container_name: dl-subscription
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-subscription
|
|
||||||
ports:
|
|
||||||
- "8005:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30005
|
|
||||||
depends_on:
|
|
||||||
- dl-db-subscription
|
|
||||||
|
|
||||||
dl-db-subscription:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-subscription
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-subscription:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5437:5432"
|
|
||||||
|
|
||||||
ddl-salestax:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-salestax:development
|
|
||||||
container_name: dl-salestax
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-salestax
|
|
||||||
ports:
|
|
||||||
- "8006:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30006
|
|
||||||
depends_on:
|
|
||||||
- dl-db-salestax
|
|
||||||
|
|
||||||
dl-db-salestax:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-salestax
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-salestax:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5438:5432"
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-gas-claim0
|
||||||
|
name: dl-db-gas-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-gas
|
||||||
|
name: dl-db-gas
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-gas
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-gas
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-gas
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-gas
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-gas-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-gas-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-gas-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-gas
|
||||||
|
name: dl-db-gas
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5441"
|
||||||
|
port: 5441
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-gas
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-gateway-claim0
|
||||||
|
name: dl-db-gateway-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
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
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-gateway
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-gateway
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-gateway
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-gateway
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-gateway-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-gateway-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-gateway-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
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
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5433"
|
||||||
|
port: 5433
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-gateway
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-generalledger-claim0
|
||||||
|
name: dl-db-generalledger-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-generalledger
|
||||||
|
name: dl-db-generalledger
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-generalledger
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-generalledger
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-generalledger
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-generalledger
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-generalledger-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-generalledger-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-generalledger-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-generalledger
|
||||||
|
name: dl-db-generalledger
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5435"
|
||||||
|
port: 5435
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-generalledger
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-invoice-claim0
|
||||||
|
name: dl-db-invoice-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-invoice
|
||||||
|
name: dl-db-invoice
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-invoice
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-invoice
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-invoice
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-invoice
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-invoice-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-invoice-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-invoice-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-invoice
|
||||||
|
name: dl-db-invoice
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5434"
|
||||||
|
port: 5434
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-invoice
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-lottery-claim0
|
||||||
|
name: dl-db-lottery-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-lottery
|
||||||
|
name: dl-db-lottery
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-lottery
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-lottery
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-lottery
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-lottery
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-lottery-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-lottery-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-lottery-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-lottery
|
||||||
|
name: dl-db-lottery
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5440"
|
||||||
|
port: 5440
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-lottery
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-payroll-claim0
|
||||||
|
name: dl-db-payroll-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-payroll
|
||||||
|
name: dl-db-payroll
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-payroll
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-payroll
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-payroll
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-payroll
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-payroll-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-payroll-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-payroll-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-payroll
|
||||||
|
name: dl-db-payroll
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5439"
|
||||||
|
port: 5439
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-payroll
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-salestax-claim0
|
||||||
|
name: dl-db-salestax-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-salestax
|
||||||
|
name: dl-db-salestax
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-salestax
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-salestax
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-salestax
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-salestax
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-salestax-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-salestax-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-salestax-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-salestax
|
||||||
|
name: dl-db-salestax
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5438"
|
||||||
|
port: 5438
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-salestax
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-subscription-claim0
|
||||||
|
name: dl-db-subscription-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-subscription
|
||||||
|
name: dl-db-subscription
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-subscription
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-subscription
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-subscription
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-subscription
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-subscription-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-subscription-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-subscription-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-subscription
|
||||||
|
name: dl-db-subscription
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5437"
|
||||||
|
port: 5437
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-subscription
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-utils-claim0
|
||||||
|
name: dl-db-utils-claim0
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-utils
|
||||||
|
name: dl-db-utils
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-db-utils
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-utils
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: dl-db-utils
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
value: Welcome@1
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: humbingo
|
||||||
|
image: postgres:16
|
||||||
|
name: dl-db-utils
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/postgresql/data
|
||||||
|
name: dl-db-utils-claim0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: dl-db-utils-claim0
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: dl-db-utils-claim0
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-db-utils
|
||||||
|
name: dl-db-utils
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "5436"
|
||||||
|
port: 5436
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-db-utils
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v15
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gas
|
||||||
|
name: dl-gas-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30009"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gas
|
||||||
|
name: dl-gas
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-gas
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30009"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gas
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v33
|
||||||
|
name: dl-gas
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-gas
|
||||||
|
name: dl-gas-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-gas-cm0
|
||||||
|
name: dl-gas-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30009"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gas
|
||||||
|
name: dl-gas
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-gas
|
||||||
|
port:
|
||||||
|
number: 8009
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30009"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gas
|
||||||
|
name: dl-gas
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8009"
|
||||||
|
port: 8009
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30009
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-gas
|
||||||
|
type: NodePort
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v17
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gateway
|
||||||
|
name: dl-gateway-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30001"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gateway
|
||||||
|
name: dl-gateway
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-gateway
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30001"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-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:v33
|
||||||
|
name: dl-gateway
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-gateway
|
||||||
|
name: dl-gateway-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-gateway-cm0
|
||||||
|
name: dl-gateway-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30001"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gateway
|
||||||
|
name: dl-gateway
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-gateway
|
||||||
|
port:
|
||||||
|
number: 8001
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30001"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-gateway
|
||||||
|
name: dl-gateway
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8001"
|
||||||
|
port: 8001
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30001
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-gateway
|
||||||
|
type: NodePort
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v15
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-generalledger
|
||||||
|
name: dl-generalledger-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30003"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-generalledger
|
||||||
|
name: dl-generalledger
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-generalledger
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30003"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-generalledger
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v33
|
||||||
|
name: dl-generalledger
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-generalledger
|
||||||
|
name: dl-generalledger-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-generalledger-cm0
|
||||||
|
name: dl-generalledger-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30003"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-generalledger
|
||||||
|
name: dl-generalledger
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-generalledger
|
||||||
|
port:
|
||||||
|
number: 8003
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30003"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-generalledger
|
||||||
|
name: dl-generalledger
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8003"
|
||||||
|
port: 8003
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30003
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-generalledger
|
||||||
|
type: NodePort
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v15
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-invoice
|
||||||
|
name: dl-invoice-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30002"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-invoice
|
||||||
|
name: dl-invoice
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-invoice
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30002"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-invoice
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v33
|
||||||
|
name: dl-invoice
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-invoice
|
||||||
|
name: dl-invoice-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-invoice-cm0
|
||||||
|
name: dl-invoice-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30002"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-invoice
|
||||||
|
name: dl-invoice
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-invoice
|
||||||
|
port:
|
||||||
|
number: 8002
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30002"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-invoice
|
||||||
|
name: dl-invoice
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8002"
|
||||||
|
port: 8002
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30002
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-invoice
|
||||||
|
type: NodePort
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v15
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-lottery
|
||||||
|
name: dl-lottery-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30008"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-lottery
|
||||||
|
name: dl-lottery
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-lottery
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30008"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-lottery
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v33
|
||||||
|
name: dl-lottery
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-lottery
|
||||||
|
name: dl-lottery-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-lottery-cm0
|
||||||
|
name: dl-lottery-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30008"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-lottery
|
||||||
|
name: dl-lottery
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-lottery
|
||||||
|
port:
|
||||||
|
number: 8008
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30008"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-lottery
|
||||||
|
name: dl-lottery
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8008"
|
||||||
|
port: 8008
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30008
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-lottery
|
||||||
|
type: NodePort
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v15
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-payroll
|
||||||
|
name: dl-payroll-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30007"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-payroll
|
||||||
|
name: dl-payroll
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-payroll
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30007"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-payroll
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v33
|
||||||
|
name: dl-payroll
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-payroll
|
||||||
|
name: dl-payroll-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-payroll-cm0
|
||||||
|
name: dl-payroll-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30007"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-payroll
|
||||||
|
name: dl-payroll
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-payroll
|
||||||
|
port:
|
||||||
|
number: 8007
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30007"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-payroll
|
||||||
|
name: dl-payroll
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8007"
|
||||||
|
port: 8007
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30007
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-payroll
|
||||||
|
type: NodePort
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v15
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-salestax
|
||||||
|
name: dl-salestax-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30006"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-salestax
|
||||||
|
name: dl-salestax
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-salestax
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30006"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-salestax
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v33
|
||||||
|
name: dl-salestax
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-salestax
|
||||||
|
name: dl-salestax-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-salestax-cm0
|
||||||
|
name: dl-salestax-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30006"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-salestax
|
||||||
|
name: dl-salestax
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-salestax
|
||||||
|
port:
|
||||||
|
number: 8006
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30006"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-salestax
|
||||||
|
name: dl-salestax
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8006"
|
||||||
|
port: 8006
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30006
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-salestax
|
||||||
|
type: NodePort
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v15
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-subscription
|
||||||
|
name: dl-subscription-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30005"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-subscription
|
||||||
|
name: dl-subscription
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-subscription
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30005"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-subscription
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v33
|
||||||
|
name: dl-subscription
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-subscription
|
||||||
|
name: dl-subscription-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-subscription-cm0
|
||||||
|
name: dl-subscription-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30005"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-subscription
|
||||||
|
name: dl-subscription
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-subscription
|
||||||
|
port:
|
||||||
|
number: 8005
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30005"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-subscription
|
||||||
|
name: dl-subscription
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8005"
|
||||||
|
port: 8005
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30005
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-subscription
|
||||||
|
type: NodePort
|
|
@ -0,0 +1,301 @@
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
docker-compose.yaml: |
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dl-gateway:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gateway:v15
|
||||||
|
container_name: dl-gateway
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gateway
|
||||||
|
ports:
|
||||||
|
- "8001:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30001
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gateway
|
||||||
|
|
||||||
|
dl-db-gateway:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gateway
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gateway:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-invoice:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-invoiceservice:v15
|
||||||
|
container_name: dl-invoice
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-invoice
|
||||||
|
ports:
|
||||||
|
- "8002:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30002
|
||||||
|
depends_on:
|
||||||
|
- dl-db-invoice
|
||||||
|
|
||||||
|
dl-db-invoice:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-invoice
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-invoice:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5434:5432"
|
||||||
|
|
||||||
|
dl-generalledger:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-generalledger:v14
|
||||||
|
container_name: dl-generalledger
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-generalledger
|
||||||
|
ports:
|
||||||
|
- "8003:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30003
|
||||||
|
depends_on:
|
||||||
|
- dl-db-generalledger
|
||||||
|
|
||||||
|
dl-db-generalledger:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-generalledger
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-generalledger:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5435:5432"
|
||||||
|
|
||||||
|
dl-utils:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v14
|
||||||
|
container_name: dl-utils
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-utils
|
||||||
|
ports:
|
||||||
|
- "8004:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30004
|
||||||
|
depends_on:
|
||||||
|
- dl-db-utils
|
||||||
|
|
||||||
|
dl-db-utils:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-utils
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-utils:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5436:5432"
|
||||||
|
|
||||||
|
dl-subscription:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-subscription:v14
|
||||||
|
container_name: dl-subscription
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-subscription
|
||||||
|
ports:
|
||||||
|
- "8005:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30005
|
||||||
|
depends_on:
|
||||||
|
- dl-db-subscription
|
||||||
|
|
||||||
|
dl-db-subscription:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-subscription
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-subscription:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5437:5432"
|
||||||
|
|
||||||
|
dl-salestax:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-salestax:v14
|
||||||
|
container_name: dl-salestax
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-salestax
|
||||||
|
ports:
|
||||||
|
- "8006:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
||||||
|
- kompose.service.expose=true # Expose service externally
|
||||||
|
- kompose.service.nodeport=30006
|
||||||
|
depends_on:
|
||||||
|
- dl-db-salestax
|
||||||
|
|
||||||
|
dl-db-salestax:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-salestax
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-salestax:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5438:5432"
|
||||||
|
|
||||||
|
|
||||||
|
dl-payroll:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-payroll:v14
|
||||||
|
container_name: dl-payroll
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-payroll
|
||||||
|
ports:
|
||||||
|
- "8007:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30007
|
||||||
|
depends_on:
|
||||||
|
- dl-db-payroll
|
||||||
|
|
||||||
|
dl-db-payroll:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-payroll
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-payroll:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5439:5432"
|
||||||
|
|
||||||
|
dl-lottery:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-lottery:v14
|
||||||
|
container_name: dl-lottery
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-lottery
|
||||||
|
ports:
|
||||||
|
- "8008:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30008
|
||||||
|
depends_on:
|
||||||
|
- dl-db-lottery
|
||||||
|
|
||||||
|
dl-db-lottery:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-lottery
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-lottery:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5440:5432"
|
||||||
|
|
||||||
|
dl-gas:
|
||||||
|
image: git.humbingo.org/docker/dailyledger-gas:v14
|
||||||
|
container_name: dl-gas
|
||||||
|
restart: always
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
|
volumes:
|
||||||
|
- .:/dl-gas
|
||||||
|
ports:
|
||||||
|
- "8009:8000"
|
||||||
|
labels:
|
||||||
|
- kompose.service.type=NodePort
|
||||||
|
- kompose.service.expose=true
|
||||||
|
- kompose.service.nodeport=30009
|
||||||
|
depends_on:
|
||||||
|
- dl-db-gas
|
||||||
|
|
||||||
|
dl-db-gas:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: humbingo
|
||||||
|
POSTGRES_DB: dl-db-gas
|
||||||
|
POSTGRES_PASSWORD: Welcome@1
|
||||||
|
volumes:
|
||||||
|
- ./dl-db-gas:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5441:5432"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-utils
|
||||||
|
name: dl-utils-cm0
|
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30004"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-utils
|
||||||
|
name: dl-utils
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
io.kompose.service: dl-utils
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30004"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-utils
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
|
||||||
|
image: git.humbingo.org/docker/dailyledger-utils:v33
|
||||||
|
name: dl-utils
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dl-utils
|
||||||
|
name: dl-utils-cm0
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: dl-utils-cm0
|
||||||
|
name: dl-utils-cm0
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30004"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-utils
|
||||||
|
name: dl-utils
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: dl-utils
|
||||||
|
port:
|
||||||
|
number: 8004
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||||
|
kompose.service.expose: "true"
|
||||||
|
kompose.service.nodeport: "30004"
|
||||||
|
kompose.service.type: NodePort
|
||||||
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
|
labels:
|
||||||
|
io.kompose.service: dl-utils
|
||||||
|
name: dl-utils
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8004"
|
||||||
|
port: 8004
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30004
|
||||||
|
selector:
|
||||||
|
io.kompose.service: dl-utils
|
||||||
|
type: NodePort
|
|
@ -1,196 +0,0 @@
|
||||||
version: '4'
|
|
||||||
|
|
||||||
services:
|
|
||||||
dl-gateway:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-gateway:latest
|
|
||||||
container_name: dl-gateway
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-gateway
|
|
||||||
ports:
|
|
||||||
- "8001:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30001
|
|
||||||
depends_on:
|
|
||||||
- dl-db-gateway
|
|
||||||
|
|
||||||
dl-db-gateway:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-gateway
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-gateway:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5433:5432"
|
|
||||||
|
|
||||||
|
|
||||||
dl-invoice:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-invoiceservice:latest
|
|
||||||
container_name: dl-invoice
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-invoice
|
|
||||||
ports:
|
|
||||||
- "8002:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30002
|
|
||||||
depends_on:
|
|
||||||
- dl-db-invoice
|
|
||||||
|
|
||||||
dl-db-invoice:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-invoice
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-invoice:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5434:5432"
|
|
||||||
|
|
||||||
dl-generalledger:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-generalledger:latest
|
|
||||||
container_name: dl-generalledger
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-generalledger
|
|
||||||
ports:
|
|
||||||
- "8003:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30003
|
|
||||||
depends_on:
|
|
||||||
- dl-db-generalledger
|
|
||||||
|
|
||||||
dl-db-generalledger:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-generalledger
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-generalledger:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5435:5432"
|
|
||||||
|
|
||||||
dl-utils:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-utils:latest
|
|
||||||
container_name: dl-utils
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-utils
|
|
||||||
ports:
|
|
||||||
- "8004:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30004
|
|
||||||
depends_on:
|
|
||||||
- dl-db-utils
|
|
||||||
|
|
||||||
dl-db-utils:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-utils
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-utils:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5436:5432"
|
|
||||||
|
|
||||||
dl-subscription:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-subscription:latest
|
|
||||||
container_name: dl-subscription
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-subscription
|
|
||||||
ports:
|
|
||||||
- "8005:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30005
|
|
||||||
depends_on:
|
|
||||||
- dl-db-subscription
|
|
||||||
|
|
||||||
dl-db-subscription:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-subscription
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-subscription:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5437:5432"
|
|
||||||
|
|
||||||
dl-salestax:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-salestax:latest
|
|
||||||
container_name: dl-salestax
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-salestax
|
|
||||||
ports:
|
|
||||||
- "8006:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30006
|
|
||||||
depends_on:
|
|
||||||
- dl-db-salestax
|
|
||||||
|
|
||||||
dl-db-salestax:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-salestax
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-salestax:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5438:5432"
|
|
|
@ -1,196 +0,0 @@
|
||||||
version: '4'
|
|
||||||
|
|
||||||
services:
|
|
||||||
dl-gateway:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-gateway:production
|
|
||||||
container_name: dl-gateway
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-gateway
|
|
||||||
ports:
|
|
||||||
- "8001:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30001
|
|
||||||
depends_on:
|
|
||||||
- dl-db-gateway
|
|
||||||
|
|
||||||
dl-db-gateway:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-gateway
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-gateway:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5433:5432"
|
|
||||||
|
|
||||||
|
|
||||||
dl-invoice:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-invoiceservice:production
|
|
||||||
container_name: dl-invoice
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-invoice
|
|
||||||
ports:
|
|
||||||
- "8002:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30002
|
|
||||||
depends_on:
|
|
||||||
- dl-db-invoice
|
|
||||||
|
|
||||||
dl-db-invoice:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-invoice
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-invoice:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5434:5432"
|
|
||||||
|
|
||||||
dl-generalledger:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-generalledger:production
|
|
||||||
container_name: dl-generalledger
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-generalledger
|
|
||||||
ports:
|
|
||||||
- "8003:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30003
|
|
||||||
depends_on:
|
|
||||||
- dl-db-generalledger
|
|
||||||
|
|
||||||
dl-db-generalledger:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-generalledger
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-generalledger:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5435:5432"
|
|
||||||
|
|
||||||
dl-utils:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-utils:production
|
|
||||||
container_name: dl-utils
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-utils
|
|
||||||
ports:
|
|
||||||
- "8004:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30004
|
|
||||||
depends_on:
|
|
||||||
- dl-db-utils
|
|
||||||
|
|
||||||
dl-db-utils:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-utils
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-utils:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5436:5432"
|
|
||||||
|
|
||||||
dl-subscription:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-subscription:production
|
|
||||||
container_name: dl-subscription
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-subscription
|
|
||||||
ports:
|
|
||||||
- "8005:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30005
|
|
||||||
depends_on:
|
|
||||||
- dl-db-subscription
|
|
||||||
|
|
||||||
dl-db-subscription:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-subscription
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-subscription:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5437:5432"
|
|
||||||
|
|
||||||
ddl-salestax:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-salestax:production
|
|
||||||
container_name: dl-salestax
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-salestax
|
|
||||||
ports:
|
|
||||||
- "8006:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30006
|
|
||||||
depends_on:
|
|
||||||
- dl-db-salestax
|
|
||||||
|
|
||||||
dl-db-salestax:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-salestax
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-salestax:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5438:5432"
|
|
|
@ -1,196 +0,0 @@
|
||||||
version: '4'
|
|
||||||
|
|
||||||
services:
|
|
||||||
dl-gateway:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-gateway:sandbox
|
|
||||||
container_name: dl-gateway
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-gateway
|
|
||||||
ports:
|
|
||||||
- "8001:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30001
|
|
||||||
depends_on:
|
|
||||||
- dl-db-gateway
|
|
||||||
|
|
||||||
dl-db-gateway:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-gateway
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-gateway:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5433:5432"
|
|
||||||
|
|
||||||
|
|
||||||
dl-invoice:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-invoiceservice:sandbox
|
|
||||||
container_name: dl-invoice
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-invoice
|
|
||||||
ports:
|
|
||||||
- "8002:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30002
|
|
||||||
depends_on:
|
|
||||||
- dl-db-invoice
|
|
||||||
|
|
||||||
dl-db-invoice:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-invoice
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-invoice:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5434:5432"
|
|
||||||
|
|
||||||
dl-generalledger:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-generalledger:sandbox
|
|
||||||
container_name: dl-generalledger
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-generalledger
|
|
||||||
ports:
|
|
||||||
- "8003:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30003
|
|
||||||
depends_on:
|
|
||||||
- dl-db-generalledger
|
|
||||||
|
|
||||||
dl-db-generalledger:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-generalledger
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-generalledger:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5435:5432"
|
|
||||||
|
|
||||||
dl-utils:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-utils:sandbox
|
|
||||||
container_name: dl-utils
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-utils
|
|
||||||
ports:
|
|
||||||
- "8004:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30004
|
|
||||||
depends_on:
|
|
||||||
- dl-db-utils
|
|
||||||
|
|
||||||
dl-db-utils:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-utils
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-utils:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5436:5432"
|
|
||||||
|
|
||||||
dl-subscription:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-subscription:sandbox
|
|
||||||
container_name: dl-subscription
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-subscription
|
|
||||||
ports:
|
|
||||||
- "8005:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30005
|
|
||||||
depends_on:
|
|
||||||
- dl-db-subscription
|
|
||||||
|
|
||||||
dl-db-subscription:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-subscription
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-subscription:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5437:5432"
|
|
||||||
|
|
||||||
ddl-salestax:
|
|
||||||
image: git.humbingo.org/docker/dailyledger-salestax:sandbox
|
|
||||||
container_name: dl-salestax
|
|
||||||
restart: always
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
|
||||||
volumes:
|
|
||||||
- .:/dl-salestax
|
|
||||||
ports:
|
|
||||||
- "8006:8000"
|
|
||||||
labels:
|
|
||||||
- kompose.service.type=NodePort # Tell kompose to create LoadBalancer
|
|
||||||
- kompose.service.expose=true # Expose service externally
|
|
||||||
- kompose.service.nodeport=30006
|
|
||||||
depends_on:
|
|
||||||
- dl-db-salestax
|
|
||||||
|
|
||||||
dl-db-salestax:
|
|
||||||
image: postgres:16
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: humbingo
|
|
||||||
POSTGRES_DB: dl-db-salestax
|
|
||||||
POSTGRES_PASSWORD: Welcome@1
|
|
||||||
volumes:
|
|
||||||
- ./dl-db-salestax:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5438:5432"
|
|
Loading…
Reference in New Issue