added reverse proxy

This commit is contained in:
Jakub Dorfman 2026-06-05 15:32:23 +02:00
parent afd7fd7686
commit 246b1990ca
57 changed files with 4174 additions and 4139 deletions

View file

@ -1,29 +1,43 @@
services:
pocketbase:
image: spectado/pocketbase:latest
container_name: massage-pocketbase
restart: unless-stopped
ports:
- "8090:80"
volumes:
- pocketbase:/pb/pb_data
app:
build:
context: .
dockerfile: Dockerfile
container_name: massage-app
restart: unless-stopped
depends_on:
- pocketbase
environment:
POCKETBASE_INTERNAL_URL: http://pocketbase:80
PUBLIC_POCKETBASE_URL: http://localhost:8090
ORIGIN: http://localhost:3000
BODY_SIZE_LIMIT: 5242880 # 5MB
ports:
- "3000:3000"
volumes:
pocketbase:
services:
pocketbase:
image: spectado/pocketbase:latest
container_name: massage-pocketbase
restart: unless-stopped
# Internal only — accessed via the caddy reverse proxy
expose:
- "80"
volumes:
- pocketbase:/pb/pb_data
app:
build:
context: .
dockerfile: Dockerfile
container_name: massage-app
restart: unless-stopped
depends_on:
- pocketbase
environment:
POCKETBASE_INTERNAL_URL: http://pocketbase:80
PUBLIC_POCKETBASE_URL: http://localhost:8080
ORIGIN: http://localhost:8080
BODY_SIZE_LIMIT: 5242880 # 5MB
# Internal only — served via the caddy reverse proxy
expose:
- "3000"
caddy:
image: caddy:2-alpine
container_name: massage-caddy
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
depends_on:
- app
- pocketbase
volumes:
pocketbase: