Created
December 8, 2019 02:14
-
-
Save dapseen/51bc7e59b96d934938a4afce34c615bb to your computer and use it in GitHub Desktop.
sidecar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: mpos | |
labels: | |
apps: mpos | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
component: mpos | |
template: | |
metadata: | |
labels: | |
component: mpos | |
spec: | |
containers: | |
- name: wallet-fund-worker | |
image: $AWS_REGISTRY_URL/mpos-transactions-service:latest | |
command: ["/bin/sh"] | |
args: ["-c","yarn wallet-fund-worker:prod"] | |
env: | |
- name: MONGO_DB_URI | |
valueFrom: | |
secretKeyRef: | |
name: mpos-env | |
key: MONGO_DB_URI | |
- name: WALLET_SERVICE_FETCH_WALLET_URL | |
value: http://wallet:4000/wallets/wallet | |
- name: WALLET_SERVICE_FUND_WALLET_ENDPOINT | |
value: http://wallet:4000/wallets/wallettransfers/fund-wallet | |
- name: MPOS_FUND_PERCENTAGE | |
value: '99.25' # means we are charging 0.75% | |
- name: REDIS_URI | |
value: redis://redis:6379 | |
- name: NODE_ENV | |
value: production | |
- name: TZ | |
value: Africa/Lagos | |
- name: LOG_LEVEL | |
value: info | |
- name: APP_NAME | |
value: mpos-wallet-fund-worker | |
- name: STAMP_DUTY_CHARGE | |
value: '5000' # 5000 kobos in 50 Naira | |
- name: STAMP_DUTY_FLOOR_AMOUNT | |
value: '100000' #1000 Naira and above | |
- name: mpos-api | |
image: $AWS_REGISTRY_URL/mpos-transactions-service:latest | |
command: ["/bin/sh"] | |
args: ["-c","yarn api:prod"] | |
ports: | |
- containerPort: 8000 | |
env: | |
- name: MONGO_DB_URI | |
valueFrom: | |
secretKeyRef: | |
name: mpos-env | |
key: MONGO_DB_URI | |
- name: APP_NAME | |
value: mpos-transactions-service | |
- name: LOG_ENABLE_CONSOLE | |
value: "true" | |
- name: NODE_ENV | |
value: production | |
- name: TZ | |
value: Africa/Lagos | |
- name: LOG_LEVEL | |
value: info | |
- name: APP_PORT | |
value: "8000" | |
- name: REDIS_URI | |
value: redis://redis:6379 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment