Skip to content

1uciuszzz/mahjong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benbellschool

启动

  1. 安装依赖项
npm i
pnpm i
  1. 修改环境变量

docker-compose.yaml

backend:
  build:
    context: ./backend
    dockerfile: Dockerfile
  restart: always
  environment:
    # 请修改下列变量
    DATABASE_URL: postgresql://postgres:postgres@db:23301/postgres?schema=public
    JWT_SECRET: 78b37db2f09767c7ad3eb47c903739359c69aa57080c2710db92fcb1809f8cd4
    JWT_ACCESS_TOKEN_TTL: 86400
  ports:
    - "23302:3000"
  depends_on:
    - db
  1. 构建映像
docker compose build
  1. 部署
docker compose up -d