chore: initialize PocketBase environment with project metadata, configuration, and data structure types
This commit is contained in:
+1016
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
handle /api/* {
|
||||
reverse_proxy pocketbase-learning:8090
|
||||
}
|
||||
|
||||
handle /_/* {
|
||||
reverse_proxy pocketbase-learning:8090
|
||||
}
|
||||
|
||||
handle {
|
||||
root * /srv
|
||||
|
||||
|
||||
+17
@@ -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.
|
||||
@@ -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:
|
||||
@@ -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:
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Vendored
+20585
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
:8080 {
|
||||
file_server
|
||||
}
|
||||
Reference in New Issue
Block a user