mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-04 00:26:07 +02:00
Merge branch 'DB_schema' into routes-implementation
# Conflicts: # docker-compose.yml
This commit is contained in:
@@ -1,25 +1,7 @@
|
||||
version: "3.4"
|
||||
services:
|
||||
mail:
|
||||
image: boky/postfix
|
||||
restart: always
|
||||
environment:
|
||||
- ALLOWED_SENDER_DOMAINS=mail.${DOMAIN}
|
||||
ports:
|
||||
- "587:587"
|
||||
container_name: "postfix"
|
||||
volumes:
|
||||
- ./host/keys/:/etc/opendkim/keys
|
||||
postgres:
|
||||
image: postgres
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=server
|
||||
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
redis:
|
||||
image: redis
|
||||
restart: always
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
@@ -33,6 +33,7 @@ model Pizza {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
description String?
|
||||
price Decimal
|
||||
restaurant Restaurant @relation(fields: [restaurantId], references: [id])
|
||||
restaurantId Int
|
||||
orders PizzaToOrder[]
|
||||
|
||||
Reference in New Issue
Block a user