-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: AbstractionFactory <[email protected]>
- Loading branch information
1 parent
7c6e443
commit d5c4679
Showing
10 changed files
with
81 additions
and
16 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
services: | ||
postgres: | ||
image: postgres | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_DB: postgres | ||
POSTGRES_PASSWORD: secret | ||
ports: | ||
- "127.0.0.1:5432:5432" | ||
volumes: | ||
- type: bind | ||
source: ./search/pg-indexer/schema.sql | ||
target: /docker-entrypoint-initdb.d/schema.sql | ||
frontend: | ||
build: | ||
context: frontend | ||
volumes: | ||
- source: ./frontend | ||
target: /work | ||
type: bind | ||
ports: | ||
- "127.0.0.1:8080:8080" | ||
dataapi: | ||
build: | ||
context: search/worker | ||
ports: | ||
- "127.0.0.1:8787:8787" | ||
volumes: | ||
- source: ./search/worker | ||
target: /work | ||
type: bind | ||
environment: | ||
- DATABASE_URL=postgresql://posgres:secret@posgres/postgres |
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 |
---|---|---|
|
@@ -23,4 +23,6 @@ dist-ssr | |
*.sln | ||
*.sw? | ||
|
||
.env | ||
.env | ||
|
||
.pnpm-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,8 @@ | ||
FROM node:18 | ||
|
||
WORKDIR /work | ||
RUN npm install -g pnpm | ||
VOLUME ["/work"] | ||
EXPOSE 3000 | ||
|
||
CMD ["/bin/bash", "-c", "echo VITE_DATA_API_URL=http://dataapi:8787 >.env && pnpm i && pnpm run dev --host 0.0.0.0 --port 3000"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM node:18 | ||
|
||
WORKDIR /work | ||
VOLUME ["/work"] | ||
EXPOSE 8787 | ||
|
||
CMD ["/bin/bash", "-c", "npm i && npm run dev"] |