-
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.
Merge pull request #2 from palico-ai/fix-template
FEAT: Updated template to use docker and presistant database
- Loading branch information
Showing
10 changed files
with
977 additions
and
96 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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
node_modules | ||
dist | ||
palico.out | ||
.DS_Store | ||
yalc.lock | ||
.yalc | ||
.DS_Store |
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,6 @@ | ||
FROM node:20-alpine AS builder | ||
WORKDIR /app | ||
COPY package.json package-lock.json palico.json tsconfig.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run build |
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,28 @@ | ||
version: "3.8" | ||
|
||
services: | ||
postgres_db: | ||
image: postgres:15-alpine | ||
restart: always | ||
environment: | ||
- POSTGRES_USER=root | ||
- POSTGRES_PASSWORD=root | ||
- POSTGRES_DB=root | ||
ports: | ||
# Standard port for PostgreSQL databases | ||
- "5432:5432" | ||
app: | ||
depends_on: | ||
- postgres_db | ||
build: . | ||
expose: | ||
- "8000" | ||
ports: | ||
- 8000:8000 | ||
volumes: | ||
- ./src:/app/src | ||
command: npm run dev | ||
environment: | ||
- DB_URL=postgres://root:root@postgres_db:5432/root | ||
- PORT=8000 | ||
- OPENAI_API_KEY=<your-openai-api-key> |
Oops, something went wrong.