fix: docker & prisma

This commit is contained in:
KofK 2024-08-14 21:48:01 +10:00
parent 43da0bdff2
commit 8b17bd6d44
3 changed files with 4 additions and 1 deletions

View File

@ -20,4 +20,4 @@ RUN npm run build
EXPOSE 3000 EXPOSE 3000
# Start the application # Start the application
CMD ["npm", "run", "start:prod"] CMD ["npm", "run", "start:dev"]

View File

@ -17,6 +17,8 @@ services:
app: app:
build: . build: .
container_name: app container_name: app
ports:
- "3000:3000"
environment: environment:
DATABASE_URL: "postgresql://user:password@postgres:5432/mydatabase" DATABASE_URL: "postgresql://user:password@postgres:5432/mydatabase"
depends_on: depends_on:

View File

@ -14,4 +14,5 @@ model Post {
media String? // URL или путь к файлу media String? // URL или путь к файлу
mediaType String? // "image", "video", "drawing", "code" mediaType String? // "image", "video", "drawing", "code"
code String? // Код, который нужно запустить code String? // Код, который нужно запустить
//TODO Добавить vector для оценки близости постов
} }