Skip to content

Commit

Permalink
fix: added dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sohamjaiswal committed Oct 19, 2023
1 parent f921ac7 commit 647bb94
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"zod": "^3.21.4"
},
"dependencies": {
"@asteasolutions/zod-to-openapi": "^6.2.0",
"@prisma/client": "^4.11.0",
"bcrypt": "^5.1.0",
"dotenv": "^16.0.3",
Expand Down
12 changes: 6 additions & 6 deletions prod.docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: "3.3"

services:
db:
container_name: db
cb-db:
container_name: cb-db
image: postgres:15.4-alpine
restart: always
environment:
Expand All @@ -11,22 +11,22 @@ services:
- ./prisma/db:/var/lib/postgresql/data
ports:
- 5432:5432
app:
container_name: app
cb-app:
container_name: cb-app
build:
context: .
dockerfile: app.prod.dockerfile
restart: always
depends_on:
- db
- cb-db
ports:
- 5555:5555
- 3000:3000
volumes:
- ./:/app
environment:
- SALT-ROUNDS=10 # change this to something very random and hard to guess
- DATABASE_URL=postgresql://postgres:${DB_PASSWORD-password}@db:5432/postgres
- DATABASE_URL=postgresql://postgres:${DB_PASSWORD-password}@cb-db:5432/postgres
- ORIGIN=https://cardboard.ink
- PROTOCOL_HEADER=x-forwarded-proto # remove this if you're not using a reverse proxy (nginx, cloudflare etc.)
- HOST_HEADER=x-forwarded-host # remove this if you're not using a reverse proxy (nginx, cloudflare etc.)
2 changes: 1 addition & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { API } from "sveltekit-api";
import { version, author } from "../../package.json";

export default new API(import.meta.glob("./**/*.ts"), {
openapi: "3.0.0",
openapi: "3.1.0",
info: {
title: "Cardboard API",
version: version,
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
dependencies:
openapi3-ts "^4.1.2"

"@asteasolutions/zod-to-openapi@^6.2.0":
version "6.2.0"
resolved "https://registry.yarnpkg.com/@asteasolutions/zod-to-openapi/-/zod-to-openapi-6.2.0.tgz#8ffe9f989b9431e715ffca95b17e45be5a703573"
integrity sha512-OhHyV/IxbDKJQJ9NJKRV5kcCyFDbZ/4HvZQXaqihWup8TirLp5od7t7idgQgj9/Gs0ltJ1Q/HLCH1eWeX/oEYg==
dependencies:
openapi3-ts "^4.1.2"

"@esbuild/[email protected]":
version "0.17.19"
resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz#bafb75234a5d3d1b690e7c2956a599345e84a2fd"
Expand Down

0 comments on commit 647bb94

Please sign in to comment.