-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e450da
commit f18916e
Showing
9 changed files
with
9,614 additions
and
11,557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.git | ||
.gitignore | ||
*.md | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM node:20-alpine AS base | ||
|
||
WORKDIR /src | ||
|
||
COPY --link package.json yarn.lock . | ||
RUN yarn install --frozen-lockfile | ||
|
||
COPY . . | ||
|
||
RUN yarn prisma generate | ||
|
||
RUN yarn run build | ||
|
||
# RUN yarn prisma generate --generator docker | ||
|
||
ENV NODE_ENV=production | ||
|
||
CMD [ "yarn", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
services: | ||
snaphold: | ||
build: | ||
context: . | ||
tags: | ||
- snaphold:latest | ||
depends_on: | ||
- db | ||
ports: | ||
- 3000:3000 | ||
environment: | ||
DATABASE_URL: "postgresql://snaphold:password@db:5432/snaphold?schema=public&sslmode=prefer" | ||
|
||
db: | ||
image: postgres:16 | ||
restart: always | ||
environment: | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_USER: snaphold | ||
POSTGRES_DB: snaphold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.