chore: initialize PocketBase environment with project metadata, configuration, and data structure types
All checks were successful
On Push to Main / test (push) Successful in 42s
On Push to Main / publish (push) Successful in 1m7s
On Push to Main / deploy-dev (push) Successful in 1m40s

This commit is contained in:
RaymondVerhoef
2026-05-15 14:55:34 +02:00
parent 0a73ab3466
commit 7234074c21
15 changed files with 21640 additions and 59 deletions

1016
CHANGELOG.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -17,6 +17,14 @@
}
}
handle /api/* {
reverse_proxy pocketbase-learning:8090
}
handle /_/* {
reverse_proxy pocketbase-learning:8090
}
handle {
root * /srv

17
LICENSE.md Normal file
View File

@@ -0,0 +1,17 @@
The MIT License (MIT)
Copyright (c) 2022 - present, Gani Georgiev
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -1,59 +0,0 @@
services:
frontend:
build: .
restart: always
expose:
- "80"
pocketbase:
image: ghcr.io/muchobien/pocketbase:latest
restart: always
expose:
- "8090"
ports:
- "8090:8090" # Remove after initial setup via admin UI
volumes:
- pb_data:/pb/pb_data
command: ["serve", "--http=0.0.0.0:8090"]
caddy:
image: caddy:2-alpine
restart: always
ports:
- "80:80"
- "443:443"
environment:
- DOMAIN_NAME=${DOMAIN_NAME}
entrypoint:
- /bin/sh
- -c
- |
CLEAN_DOMAIN=$(printf '%s' "$DOMAIN_NAME" | tr -d ';')
cat > /etc/caddy/Caddyfile <<EOF
$${CLEAN_DOMAIN} {
handle /api/anthropic/* {
reverse_proxy frontend:80
}
handle /api/* {
reverse_proxy pocketbase:8090
}
handle /_/* {
reverse_proxy pocketbase:8090
}
handle {
reverse_proxy frontend:80
}
}
EOF
caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
volumes:
- caddy_data:/data
- caddy_config:/config
depends_on:
- frontend
- pocketbase
volumes:
caddy_data:
caddy_config:
pb_data:

View File

@@ -4,3 +4,14 @@ services:
restart: unless-stopped
ports:
- "8080:80"
pocketbase-learning:
image: ghcr.io/muchobien/pocketbase:latest
container_name: pocketbase-learning
restart: unless-stopped
command: ["serve", "--http=0.0.0.0:8090"]
volumes:
- pb_data:/pb/pb_data
volumes:
pb_data:

BIN
pb_data/data.db Normal file

Binary file not shown.

BIN
pb_data/data.db-shm Normal file

Binary file not shown.

BIN
pb_data/data.db-wal Normal file

Binary file not shown.

BIN
pb_data/logs.db Normal file

Binary file not shown.

BIN
pb_data/logs.db-shm Normal file

Binary file not shown.

BIN
pb_data/logs.db-wal Normal file

Binary file not shown.

20585
pb_data/types.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

BIN
pocketbase.exe Normal file

Binary file not shown.

BIN
pocketbase.zip Normal file

Binary file not shown.

3
test_caddyfile Normal file
View File

@@ -0,0 +1,3 @@
:8080 {
file_server
}