Compare commits

...

8 Commits

Author SHA1 Message Date
Supan Adit Pratama c120094087 merge 2024-08-21 13:41:33 +00:00
Supan Adit Pratama 7f349ed3ee ci: update env 2024-08-21 13:38:21 +00:00
irfan f6b1864e67 Merge pull request 'development' (#74) from development into staging
Reviewed-on: #74
2024-08-21 13:36:07 +00:00
shancheas afa63667ab Merge branch 'development' into staging 2024-08-14 12:51:27 +07:00
shancheas b2ce4d6732 feat: add default migration 2024-07-26 14:16:56 +07:00
shancheas 46b92afb89 Merge branch 'development' of ssh://git.eigen.co.id:2222/eigen/pos-be into staging 2024-07-22 19:03:40 +07:00
shancheas eb086e2d7d ci: remove env target 2024-07-05 10:19:30 +07:00
shancheas 2c46650e43 chore: add docker configuration 2024-07-01 11:09:19 +07:00
2 changed files with 10 additions and 10 deletions

View File

@ -2,14 +2,11 @@ FROM node:18.17-alpine as builder
RUN apk add --no-cache git
WORKDIR /app
COPY . .
# RUN yarn migration:execute
RUN yarn install
RUN yarn build
FROM node:18.17-alpine
ARG env_target
WORKDIR /app
RUN echo ${env_target}
COPY env/$env_target /app/.env
COPY --from=builder /app/env/$env_target .env
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/assets ./assets

15
env/env.production vendored
View File

@ -6,16 +6,16 @@ JWT_REFRESH_EXPIRES="7d"
ENC_KEY="921c83f3b90c92dca4ba9b947f99b4c9"
IV="a671a96159e97a4f"
COUCHDB_CONFIG="http://root:password@172.10.10.2:5970"
COUCHDB_CONFIG="http://root:password@db_pos_couch_staging:5984"
DEFAULT_DB_HOST="postgres"
DEFAULT_DB_HOST="db_pos_postgres_staging"
DEFAULT_DB_PORT="5432"
DEFAULT_DB_USER="root"
DEFAULT_DB_PASS="password"
DEFAULT_DB_USER="postgres"
DEFAULT_DB_PASS="eigen3m!"
DEFAULT_DB_NAME="pos"
ELASTIC_APM_ACTIVATE=true
ELASTIC_APM_SERVICE_NAME="Skyworld POS"
ELASTIC_APM_SERVICE_NAME="Skyworld POS Production"
ELASTIC_APM_SERVER_URL="http://172.10.10.10:8200"
CRON_MIDNIGHT="55 11 * * *"
@ -27,13 +27,16 @@ EMAIL_POST=465
EMAIL_USER=weplayground.app@gmail.com
EMAIL_TOKEN="sonv vwiu khse vtmv"
// nama email yang akan muncul ke user sebagai pengirim
EMAIL_SENDER=no-reply@eigen.co.id
MIDTRANS_URL=https://app.midtrans.com
MIDTRANS_PRODUCTION=true
MIDTRANS_SERVER_KEY=Mid-server-BZlPCcrWHDuSxW48oxBs5uAl
MIDTRANS_CLIENT_KEY=Mid-client-YhOPuo0NZPNZfiKq
EXPORT_LIMIT_PARTITION=200
ASSETS="https://asset.sky.eigen.co.id/"
ASSETS="https://assets.office.weplayground.id/"
GOOGLE_CALENDAR_KEY="AIzaSyCSg4P3uC9Z7kD1P4f3rf1BbBaz4Q-M55o"
GOOGLE_CALENDAR_ID="326464ac296874c7121825f5ef2e2799baa90b51da240f0045aae22beec10bd5@group.calendar.google.com"