1404/07/30 16:40:42 - auto commit

This commit is contained in:
mobin
2025-10-21 16:40:42 +00:00
parent 9faaef7ce2
commit 1660361532
4 changed files with 12 additions and 28 deletions
+1 -8
View File
@@ -9,14 +9,7 @@ RUN npm install --production=false
COPY tsconfig.json ./ COPY tsconfig.json ./
COPY src ./src COPY src ./src
ENV PORT=20205
ENV DB_NAME=Identity_verification
ENV DB_USER=root
ENV DB_PASS=changeme
ENV DB_HOST=mysql
ENV DB_PORT=3306
ENV JIBIT_API_KEY=change_me
ENV JIBIT_SECRET_KEY=change_me
EXPOSE 20205 EXPOSE 20205
+2 -15
View File
@@ -1,23 +1,11 @@
version: '3.9' version: '3.9'
services: services:
mysql:
image: mysql:8.0
container_name: iv_mysql
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_NAME:-Identity_verification}
MYSQL_ROOT_PASSWORD: ${DB_PASS:-changeme}
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
app: app:
build: . build: .
container_name: iv_app container_name: iv_app
restart: unless-stopped restart: unless-stopped
env_file:
- .env
environment: environment:
PORT: ${PORT:-20205} PORT: ${PORT:-20205}
DB_NAME: ${DB_NAME:-Identity_verification} DB_NAME: ${DB_NAME:-Identity_verification}
@@ -29,8 +17,7 @@ services:
JIBIT_SECRET_KEY: ${JIBIT_SECRET_KEY:-change_me} JIBIT_SECRET_KEY: ${JIBIT_SECRET_KEY:-change_me}
ports: ports:
- "${PORT:-20205}:${PORT:-20205}" - "${PORT:-20205}:${PORT:-20205}"
depends_on:
- mysql
volumes: volumes:
mysql_data: mysql_data:
+4
View File
@@ -0,0 +1,4 @@
sudo apt install jcal -y
sudo git add .
sudo git commit -m "$(jdate '+%Y/%m/%d %H:%M:%S') - auto commit" || true
sudo git push
+5 -5
View File
@@ -1,10 +1,10 @@
import { Sequelize } from 'sequelize'; import { Sequelize } from 'sequelize';
const DB_NAME = process.env.DB_NAME || 'Identity_verification'; const DB_NAME = 'Identity_verification';
const DB_USER = process.env.DB_USER || 'root'; const DB_USER = 'root';
const DB_PASS = process.env.DB_PASS || '@8@w!1o*8Aq@8P$L20'; const DB_PASS ='@8@w!1o*8Aq@8P$L20';
const DB_HOST = process.env.DB_HOST || '185.97.116.24'; const DB_HOST = '185.97.116.24';
const DB_PORT = parseInt(process.env.DB_PORT || '3306', 10); const DB_PORT = '3306';
// اتصال به دیتابیس MySQL // اتصال به دیتابیس MySQL
export const sequelize = new Sequelize(DB_NAME, DB_USER, DB_PASS, { export const sequelize = new Sequelize(DB_NAME, DB_USER, DB_PASS, {