Skip to content

Commit

Permalink
Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb-T-Owens committed Dec 9, 2024
1 parent 993dba5 commit b8b62f2
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
CURRENT_ENV
.DS_Store
**/.DS_Store
7 changes: 7 additions & 0 deletions deploy/electron/services/serverless/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM debian:bookworm

COPY . /app

WORKDIR /app

CMD ./pocketbase serve --http 0.0.0.0:3000 --dir pb_data --migrationsDir pb_migrations
15 changes: 15 additions & 0 deletions deploy/electron/services/serverless/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: serverless

services:
web:
build: .
restart: unless-stopped
ports:
- "3040:3000"
volumes:
- data:/app/pb_data
- data:/app/pb_migrations

volumes:
data:
migrations:
5 changes: 5 additions & 0 deletions deploy/electron/services/serverless/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pushd $SHERMAN_DIR/deploy/electron/services/serverless

docker compose up -d --build

popd
Binary file not shown.
Binary file added deploy/electron/services/serverless/pocketbase
Binary file not shown.
1 change: 1 addition & 0 deletions projects/project-euler/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/

0 comments on commit b8b62f2

Please sign in to comment.