Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 605 Bytes

README.md

File metadata and controls

43 lines (33 loc) · 605 Bytes

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