Skip to content

Commit

Permalink
fix: remove Rocket.toml from sub folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Apr 8, 2024
1 parent 4e362fb commit 4289d2d
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 6 deletions.
33 changes: 33 additions & 0 deletions mercury-server-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mercury-server
labels:
app: mercury-server
spec:
selector:
matchLabels:
app: mercury-server
replicas: 1
template:
metadata:
labels:
app: mercury-server
spec:
containers:
- name: mercury-server
image: commerceblockx/mercury-server:latest
ports:
- containerPort: 8000
command: ["cargo", "run", "--bin", "mercury-server"]
env:
- name: LOCKBOX
value: "http://78.141.209.195:18080"
- name: NETWORK
value: "testnet"
- name: LOCKHEIGHT_INIT
value: "1000"
- name: LH_DECREMENT
value: "10"
- name: CONNECTION_STRING
value: "postgresql://postgres:[email protected]/mercury_token2"
13 changes: 13 additions & 0 deletions mercury-server-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: mercury-server-service
spec:
ports:
- port: 8000
nodePort: 32450
protocol: TCP
targetPort: 8000
selector:
app: mercury-server
type: NodePort
21 changes: 21 additions & 0 deletions nginx-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
12 changes: 12 additions & 0 deletions nginx-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: ngnix-service
spec:
selector:
app: nginx
type: NodePort
ports:
- protocol: TCP
port: 80
targetPort: 80
3 changes: 0 additions & 3 deletions server/Rocket.toml

This file was deleted.

31 changes: 31 additions & 0 deletions token-server-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: token-server
spec:
selector:
matchLabels:
app: token-server
replicas: 1
template:
metadata:
labels:
app: token-server
spec:
containers:
- name: token-server
image: commerceblockx/token-server:latest
ports:
- containerPort: 8001
command: ["cargo", "run", "--bin", "token-server"]
env:
- name: PROCESSOR_URL
value: "https://api.swiss-bitcoin-pay.ch"
- name: API_KEY
value: "684e8697137644bf9a97f6a5d2132349"
- name: FEE
value: "0.001"
- name: DELAY
value: "60"
- name: CONNECTION_STRING
value: "postgresql://postgres:[email protected]/mercury_token2"
15 changes: 15 additions & 0 deletions token-server-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: token-server
name: token-server
spec:
ports:
- port: 80
nodePort: 32451
protocol: TCP
targetPort: 8001
selector:
app: token-server
type: NodePort
3 changes: 0 additions & 3 deletions token-server/Rocket.toml

This file was deleted.

0 comments on commit 4289d2d

Please sign in to comment.