This repository has been archived by the owner on Oct 15, 2023. It is now read-only.
-
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 branch 'main' of https://github.com/Dungeon-MASSters/MASSter
- Loading branch information
Showing
22 changed files
with
921 additions
and
50 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,46 @@ | ||
version: '3' | ||
|
||
volumes: | ||
pb_volume: | ||
|
||
services: | ||
pocketbase: | ||
build: | ||
context: ./pocketbase | ||
|
||
ports: | ||
- 8090:8090 | ||
|
||
command: ["/pocketbase/pocketbase", "serve", "--http", "0.0.0.0:8090"] | ||
|
||
volumes: | ||
- pb_volume:/pocketbase | ||
|
||
frontend-dev: | ||
build: | ||
context: ./frontend/MASSter-frontend | ||
|
||
ports: | ||
- 8080:8080 | ||
|
||
command: ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "8080"] | ||
|
||
preprocessor: | ||
build: | ||
context: model/preprocessor/docker | ||
|
||
environment: | ||
- PB_LINK=http://pocketbase:8090/ | ||
- [email protected] | ||
- PB_PWD=1234567890 | ||
- COL_NAME=text_generation_mvp | ||
|
||
generator: | ||
build: | ||
context: model/generator/docker | ||
|
||
environment: | ||
- PB_LINK=http://pocketbase:8090/ | ||
- [email protected] | ||
- PB_PWD=1234567890 | ||
- COL_NAME=text_generation_mvp |
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,2 @@ | ||
node_modules/ | ||
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 @@ | ||
VITE_PB_HOST="http://pocketbase:8090" |
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,12 @@ | ||
FROM node:18 | ||
|
||
COPY .env.production . | ||
COPY package.json . | ||
COPY package-lock.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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import PocketBase from "pocketbase"; | ||
|
||
export const pb = new PocketBase("https://pb.apps.npod.space"); | ||
export const pb = new PocketBase(import.meta.env.VITE_PB_HOST); | ||
// pb.autoCancellation(false); | ||
|
||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,14 @@ | ||
FROM debian:11 | ||
|
||
WORKDIR /pocketbase | ||
|
||
RUN apt update -y | ||
RUN apt install -y unzip wget | ||
|
||
RUN wget https://github.com/pocketbase/pocketbase/releases/download/v0.18.10/pocketbase_0.18.10_linux_amd64.zip | ||
RUN unzip pocketbase_0.18.10_linux_amd64.zip | ||
|
||
COPY ./pb_migrations ./pb_migrations | ||
|
||
WORKDIR / | ||
|
Oops, something went wrong.