Sign inSign up

mageas/mspr-backend

By mageas

•Updated over 2 years ago

Le backend pour une magnifique mspr

Image
0

1.2K

mageas/mspr-backend repository overview

https://github.com/epsi-mspr-antd/backend⁠

Il faut mettre la base de données db.sqlite dans le dossier data.

Il faut copier .env.prod.dist vers .env.prod et changer les variables d'environnement.

.env.prod

# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

DATABASE_URL="file:/app/data/db.sqlite"

AT_SECRET="at-refresh"
AT_EXPIRES_IN="1w"

RT_SECRET="rt-refresh"
RT_EXPIRES_IN="1w"

docker-compose.yml

version: '3.7'
services:
  backend:
    image: mageas/mspr-backend:latest
    ports:
      - "3000:3000"
    volumes:
      - ./data:/app/data
    env_file:
      - .env.prod

Tag summary

Content type

Image

Digest

sha256:9efa7a322…

Size

448.3 MB

Last updated

over 2 years ago

docker pull mageas/mspr-backend